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