class Const_
Same name in this branch
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Const_.php \PhpParser\Node\Const_
Hierarchy
- class \PhpParser\Node\Stmt\Const_ extends \Node\Stmt
Expanded class hierarchy of Const_
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Const_.php, line 7
Namespace
PhpParser\Node\StmtView source
class Const_ extends Node\Stmt {
/** @var Node\Const_[] Constant declarations */
public array $consts;
/**
* Constructs a const list node.
*
* @param Node\Const_[] $consts Constant declarations
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(array $consts, array $attributes = []) {
$this->attributes = $attributes;
$this->consts = $consts;
}
public function getSubNodeNames() : array {
return [
'consts',
];
}
public function getType() : string {
return 'Stmt_Const';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Const_::$consts | public | property | @var Node\Const_[] Constant declarations |
Const_::getSubNodeNames | public | function | |
Const_::getType | public | function | |
Const_::__construct | public | function | Constructs a const list node. |