Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class EdmRecordExpression extends EdmElement implements IRecordExpression |
||
20 | { |
||
21 | |||
22 | use RecordExpressionHelpers; |
||
23 | /** |
||
24 | * @var IStructuredTypeReference |
||
25 | */ |
||
26 | private $declaredType; |
||
27 | /** |
||
28 | * @var IPropertyConstructor[] |
||
29 | */ |
||
30 | private $properties; |
||
31 | |||
32 | /** |
||
33 | * Initializes a new instance of the EdmRecordExpression class. |
||
34 | * @param IStructuredTypeReference $declaredType Optional declared type of the record. |
||
35 | * @param IPropertyConstructor ...$properties Property constructors. |
||
36 | */ |
||
37 | public function __construct(IStructuredTypeReference $declaredType = null, IPropertyConstructor ...$properties) |
||
41 | } |
||
42 | /** |
||
43 | * @inheritDoc |
||
44 | */ |
||
45 | public function getDeclaredType(): IStructuredTypeReference |
||
46 | { |
||
47 | return $this->declaredType; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @inheritDoc |
||
52 | */ |
||
53 | public function getProperties(): array |
||
54 | { |
||
55 | return $this->properties; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @inheritDoc |
||
60 | */ |
||
61 | public function getExpressionKind(): ExpressionKind |
||
64 | } |
||
65 | } |