KIND_BIN
KIND_BIN = 2
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 |
fromString(string $str, array $attributes = array(), boolean $allowInvalidOctal = false) : \PhpParser\Node\Scalar\LNumber
Constructs an LNumber node from a string number literal.
string | $str | String number literal (decimal, octal, hex or binary) |
array | $attributes | Additional attributes |
boolean | $allowInvalidOctal | Whether to allow invalid octal numbers (PHP 5) |
The constructed LNumber, including kind attribute
None found |