Total Complexity | 5 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class EdmValueTermReferenceExpression extends EdmElement implements IValueTermReferenceExpression |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var IExpression |
||
23 | */ |
||
24 | private $baseExpression; |
||
25 | /** |
||
26 | * @var IValueTerm |
||
27 | */ |
||
28 | private $term; |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $qualifier; |
||
33 | |||
34 | /** |
||
35 | * Initializes a new instance of the EdmValueTermReferenceExpression class. |
||
36 | * @param IExpression $baseExpression Expression for the structured value containing the referenced term property. |
||
37 | * @param IValueTerm $term Referenced value term. |
||
38 | * @param string $qualifier Qualifier |
||
39 | */ |
||
40 | public function __construct(IExpression $baseExpression, IValueTerm $term, string $qualifier = null) |
||
41 | { |
||
42 | $this->baseExpression = $baseExpression; |
||
43 | $this->term = $term; |
||
44 | $this->qualifier = $qualifier; |
||
45 | } |
||
46 | /** |
||
47 | * @inheritDoc |
||
48 | */ |
||
49 | public function getBase(): IExpression |
||
50 | { |
||
51 | return $this->baseExpression; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @inheritDoc |
||
56 | */ |
||
57 | public function getTerm(): IValueTerm |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @inheritDoc |
||
64 | */ |
||
65 | public function getQualifier(): string |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @inheritDoc |
||
72 | */ |
||
73 | public function getExpressionKind(): ExpressionKind |
||
78 | } |