1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Node; |
4: | |
5: | use PhpParser\Node\Expr\Array_; |
6: | use PhpParser\NodeAbstract; |
7: | |
8: | |
9: | |
10: | |
11: | final class LiteralArrayNode extends NodeAbstract implements VirtualNode |
12: | { |
13: | |
14: | |
15: | |
16: | |
17: | public function __construct(Array_ $originalNode, private array $itemNodes) |
18: | { |
19: | parent::__construct($originalNode->getAttributes()); |
20: | } |
21: | |
22: | |
23: | |
24: | |
25: | public function getItemNodes(): array |
26: | { |
27: | return $this->itemNodes; |
28: | } |
29: | |
30: | public function getType(): string |
31: | { |
32: | return 'PHPStan_Node_LiteralArray'; |
33: | } |
34: | |
35: | |
36: | |
37: | |
38: | public function getSubNodeNames(): array |
39: | { |
40: | return []; |
41: | } |
42: | |
43: | } |
44: | |