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: * @final
12: */
13: class PropertyRead
14: {
15:
16: public function __construct(
17: private PropertyFetch|StaticPropertyFetch $fetch,
18: private Scope $scope,
19: )
20: {
21: }
22:
23: /**
24: * @return PropertyFetch|StaticPropertyFetch
25: */
26: public function getFetch()
27: {
28: return $this->fetch;
29: }
30:
31: public function getScope(): Scope
32: {
33: return $this->scope;
34: }
35:
36: }
37: