Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class EdmPropertyReferenceExpression extends EdmElement implements IPropertyReferenceExpression |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var IExpression |
||
23 | */ |
||
24 | private $baseExpression; |
||
25 | /** |
||
26 | * @var IProperty |
||
27 | */ |
||
28 | private $referencedProperty; |
||
29 | |||
30 | /** |
||
31 | * Initializes a new instance of the EdmPropertyReferenceExpression class. |
||
32 | * @param IExpression $baseExpression Expression for the structured value containing the referenced property. |
||
33 | * @param IProperty $referencedProperty Referenced property. |
||
34 | */ |
||
35 | public function __construct(IExpression $baseExpression, IProperty $referencedProperty) |
||
36 | { |
||
37 | $this->baseExpression = $baseExpression; |
||
38 | $this->referencedProperty = $referencedProperty; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return IProperty |
||
43 | */ |
||
44 | public function getReferencedProperty(): IProperty |
||
45 | { |
||
46 | return $this->referencedProperty; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @inheritDoc |
||
51 | */ |
||
52 | public function getExpressionKind(): ExpressionKind |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @inheritDoc |
||
59 | */ |
||
60 | public function getBase(): IExpression |
||
63 | } |
||
64 | } |