1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Node\Method;
4:
5: use PhpParser\Node;
6: use PhpParser\Node\Expr\Array_;
7: use PhpParser\Node\Expr\StaticCall;
8: use PHPStan\Analyser\Scope;
9:
10: /** @api */
11: class MethodCall
12: {
13:
14: public function __construct(
15: private Node\Expr\MethodCall|StaticCall|Array_ $node,
16: private Scope $scope,
17: )
18: {
19: }
20:
21: /**
22: * @return Node\Expr\MethodCall|StaticCall|Array_
23: */
24: public function getNode()
25: {
26: return $this->node;
27: }
28:
29: public function getScope(): Scope
30: {
31: return $this->scope;
32: }
33:
34: }
35: