php-parser/test/code/parser/stmt/class/abstract.test

37 lines
696 B
Plaintext
Raw Normal View History

2011-11-27 11:20:35 +01:00
Abstract class
-----
<?php
abstract class A {
public function a() {}
abstract public function b();
}
-----
array(
0: Stmt_Class(
type: 16
name: A
2011-11-27 11:20:35 +01:00
extends: null
implements: array(
)
stmts: array(
0: Stmt_ClassMethod(
type: 1
byRef: false
name: a
2011-11-27 11:20:35 +01:00
params: array(
)
stmts: array(
)
)
1: Stmt_ClassMethod(
type: 17
byRef: false
name: b
2011-11-27 11:20:35 +01:00
params: array(
)
stmts: null
)
)
)
)