2011-12-04 16:52:43 +01:00
|
|
|
PHP 4 style declarations
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
class A {
|
|
|
|
var $foo;
|
|
|
|
function bar() {}
|
2015-03-02 11:33:41 +01:00
|
|
|
static abstract function baz() {}
|
2011-12-04 16:52:43 +01:00
|
|
|
}
|
|
|
|
-----
|
|
|
|
array(
|
|
|
|
0: Stmt_Class(
|
|
|
|
type: 0
|
2014-03-22 14:49:56 +01:00
|
|
|
name: A
|
2011-12-04 16:52:43 +01:00
|
|
|
extends: null
|
|
|
|
implements: array(
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
0: Stmt_Property(
|
2015-03-02 11:33:41 +01:00
|
|
|
type: 0
|
2011-12-04 16:52:43 +01:00
|
|
|
props: array(
|
|
|
|
0: Stmt_PropertyProperty(
|
|
|
|
name: foo
|
|
|
|
default: null
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
1: Stmt_ClassMethod(
|
2015-03-02 11:33:41 +01:00
|
|
|
type: 0
|
2011-12-04 16:52:43 +01:00
|
|
|
byRef: false
|
2014-03-22 14:49:56 +01:00
|
|
|
name: bar
|
2011-12-04 16:52:43 +01:00
|
|
|
params: array(
|
|
|
|
)
|
2015-03-12 13:17:31 +01:00
|
|
|
returnType: null
|
2011-12-04 16:52:43 +01:00
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
2015-03-02 11:33:41 +01:00
|
|
|
2: Stmt_ClassMethod(
|
|
|
|
type: 24
|
|
|
|
byRef: false
|
|
|
|
name: baz
|
|
|
|
params: array(
|
|
|
|
)
|
2015-03-12 13:17:31 +01:00
|
|
|
returnType: null
|
2015-03-02 11:33:41 +01:00
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
2015-03-02 11:33:41 +01:00
|
|
|
)
|