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