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: /**
11: * @api
12: */
13: final class MethodCall
14: {
15:
16: public function __construct(
17: private Node\Expr\MethodCall|StaticCall|Array_ $node,
18: private Scope $scope,
19: )
20: {
21: }
22:
23: /**
24: * @return Node\Expr\MethodCall|StaticCall|Array_
25: */
26: public function getNode()
27: {
28: return $this->node;
29: }
30:
31: public function getScope(): Scope
32: {
33: return $this->scope;
34: }
35:
36: }
37: