MODIFIER_PUBLIC
MODIFIER_PUBLIC = 1
| None found |
$stmts : array<mixed,\PhpParser\Node>
| None found |
$extends : null|\PhpParser\Node\Name
| None found |
$implements : array<mixed,\PhpParser\Node\Name>
| None found |
| None found |
getMethods() : array<mixed,\PhpParser\Node\Stmt\ClassMethod>
Gets all methods defined directly in this class/interface/trait
| None found |
getMethod(string $name) : \PhpParser\Node\Stmt\ClassMethod|null
Gets method with the given name defined directly in this class/interface/trait.
| string | $name | Name of the method (compared case-insensitively) |
Method node or null if the method does not exist
| None found |
__construct(string|null $name, array $subNodes = array(), array $attributes = array())
Constructs a class node.
| string|null | $name | Name |
| array | $subNodes | Array of the following optional subnodes: 'flags' => 0 : Flags 'extends' => null : Name of extended class 'implements' => array(): Names of implemented interfaces 'stmts' => array(): Statements |
| array | $attributes | Additional attributes |
| None found |
| None found |
| None found |
| None found |
getDocComment() : null|\PhpParser\Comment\Doc
Gets the doc comment of the node.
The doc comment has to be the last comment associated with the node.
Doc comment object or null
| None found |
setDocComment(\PhpParser\Comment\Doc $docComment)
Sets the doc comment of the node.
This will either replace an existing doc comment or add it to the comments array.
| \PhpParser\Comment\Doc | $docComment | Doc comment to set |
| None found |
setAttribute(string $key, mixed $value)
Sets an attribute on a node.
| string | $key | |
| mixed | $value |
| None found |
hasAttribute(string $key) : boolean
Returns whether an attribute exists.
| string | $key |
| None found |
getAttribute(string $key, mixed $default = null) : mixed
Returns the value of an attribute.
| string | $key | |
| mixed | $default |
| None found |
| None found |
| None found |
| None found |
| None found |
| None found |
| None found |