function Node::getAttribute
Same name in this branch
- 11.1.x vendor/phpstan/phpdoc-parser/src/Ast/Node.php \PHPStan\PhpDocParser\Ast\Node::getAttribute()
- 11.1.x vendor/twig/twig/src/Node/Node.php \Twig\Node\Node::getAttribute()
Returns the value of an attribute.
Parameters
mixed $default:
Return value
mixed
1 method overrides Node::getAttribute()
- NodeAbstract::getAttribute in vendor/
nikic/ php-parser/ lib/ PhpParser/ NodeAbstract.php - Returns the value of an attribute.
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node.php, line 135
Class
Namespace
PhpParserCode
public function getAttribute(string $key, $default = null);