mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-03 09:57:51 +01:00
33 lines
567 B
Plaintext
33 lines
567 B
Plaintext
Conditional class definition
|
|
-----
|
|
<?php
|
|
|
|
if (true) {
|
|
class A {}
|
|
}
|
|
-----
|
|
array(
|
|
0: Stmt_If(
|
|
cond: Expr_ConstFetch(
|
|
name: Name(
|
|
parts: array(
|
|
0: true
|
|
)
|
|
)
|
|
)
|
|
stmts: array(
|
|
0: Stmt_Class(
|
|
type: 0
|
|
name: A
|
|
extends: null
|
|
implements: array(
|
|
)
|
|
stmts: array(
|
|
)
|
|
)
|
|
)
|
|
elseifs: array(
|
|
)
|
|
else: null
|
|
)
|
|
) |