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(
|
2016-07-25 13:33:19 +02:00
|
|
|
flags: 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(
|
2016-07-25 13:33:19 +02:00
|
|
|
flags: 0
|
2011-12-04 16:52:43 +01:00
|
|
|
props: array(
|
|
|
|
0: Stmt_PropertyProperty(
|
|
|
|
name: foo
|
|
|
|
default: null
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
1: Stmt_ClassMethod(
|
2016-07-25 13:33:19 +02:00
|
|
|
flags: 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(
|
2016-07-25 13:33:19 +02:00
|
|
|
flags: 24
|
2015-03-02 11:33:41 +01:00
|
|
|
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
|
|
|
)
|
|
|
|
)
|
2016-07-25 13:33:19 +02:00
|
|
|
)
|