mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-07-25 08:11:22 +02:00
In most circumstances we are interested in the whole string, not the parts split by namespace separator. As names are common, this representation measurably improves memory usage and performance.
41 lines
751 B
Plaintext
41 lines
751 B
Plaintext
Interface
|
|
-----
|
|
<?php
|
|
|
|
interface A extends C, D {
|
|
public function a();
|
|
}
|
|
-----
|
|
array(
|
|
0: Stmt_Interface(
|
|
attrGroups: array(
|
|
)
|
|
name: Identifier(
|
|
name: A
|
|
)
|
|
extends: array(
|
|
0: Name(
|
|
name: C
|
|
)
|
|
1: Name(
|
|
name: D
|
|
)
|
|
)
|
|
stmts: array(
|
|
0: Stmt_ClassMethod(
|
|
attrGroups: array(
|
|
)
|
|
flags: PUBLIC (1)
|
|
byRef: false
|
|
name: Identifier(
|
|
name: a
|
|
)
|
|
params: array(
|
|
)
|
|
returnType: null
|
|
stmts: null
|
|
)
|
|
)
|
|
)
|
|
)
|