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
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
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
|
2019-01-05 12:06:18 +01:00
|
|
|
type: null
|
2011-12-04 16:52:43 +01:00
|
|
|
props: array(
|
|
|
|
0: Stmt_PropertyProperty(
|
2017-04-28 19:09:39 +02:00
|
|
|
name: VarLikeIdentifier(
|
|
|
|
name: foo
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
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
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
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:53:49 +02:00
|
|
|
flags: MODIFIER_ABSTRACT | MODIFIER_STATIC (24)
|
2015-03-02 11:33:41 +01:00
|
|
|
byRef: false
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: baz
|
|
|
|
)
|
2015-03-02 11:33:41 +01:00
|
|
|
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
|
|
|
)
|