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