class ConstExprArrayNode
Hierarchy
- class \PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprArrayNode implements \PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprNode uses \PHPStan\PhpDocParser\Ast\NodeAttributes
Expanded class hierarchy of ConstExprArrayNode
1 file declares its use of ConstExprArrayNode
- Printer.php in vendor/
phpstan/ phpdoc-parser/ src/ Printer/ Printer.php
File
-
vendor/
phpstan/ phpdoc-parser/ src/ Ast/ ConstExpr/ ConstExprArrayNode.php, line 8
Namespace
PHPStan\PhpDocParser\Ast\ConstExprView source
class ConstExprArrayNode implements ConstExprNode {
use NodeAttributes;
/** @var ConstExprArrayItemNode[] */
public $items;
/**
* @param ConstExprArrayItemNode[] $items
*/
public function __construct(array $items) {
$this->items = $items;
}
public function __toString() : string {
return '[' . implode(', ', $this->items) . ']';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ConstExprArrayNode::$items | public | property | @var ConstExprArrayItemNode[] |
ConstExprArrayNode::__construct | public | function | * |
ConstExprArrayNode::__toString | public | function | |
NodeAttributes::$attributes | private | property | @var array<string, mixed> |
NodeAttributes::getAttribute | public | function | * |
NodeAttributes::hasAttribute | public | function | |
NodeAttributes::setAttribute | public | function | * |