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