Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class EdmCollectionExpression extends EdmElement implements ICollectionExpression |
||
19 | { |
||
20 | /** |
||
21 | * @var ITypeReference |
||
22 | */ |
||
23 | private $declaredType; |
||
24 | /** |
||
25 | * @var IExpression[] |
||
26 | */ |
||
27 | private $elements; |
||
28 | |||
29 | /** |
||
30 | * Initializes a new instance of the EdmCollectionExpression class. |
||
31 | * @param ITypeReference $declaredType Declared type of the collection. |
||
32 | * @param IExpression[] $elements The constructed element values. |
||
33 | */ |
||
34 | public function __construct(ITypeReference $declaredType, IExpression ...$elements) |
||
35 | { |
||
36 | EdmUtil::CheckArgumentNull($elements, "elements"); |
||
37 | $this->declaredType = $declaredType; |
||
38 | $this->elements = $elements; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @inheritDoc |
||
43 | */ |
||
44 | public function getDeclaredType(): ITypeReference |
||
45 | { |
||
46 | return $this->declaredType; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @inheritDoc |
||
51 | */ |
||
52 | public function getElements(): array |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @inheritDoc |
||
59 | */ |
||
60 | public function getExpressionKind(): ExpressionKind |
||
63 | } |
||
64 | } |