Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class EdmTypeAnnotation extends EdmVocabularyAnnotation implements ITypeAnnotation |
||
17 | { |
||
18 | use TypeAnnotationHelpers; |
||
19 | /** |
||
20 | * @var IPropertyValueBinding[] |
||
21 | */ |
||
22 | private $propertyValueBindings; |
||
23 | |||
24 | /** |
||
25 | * Initializes a new instance of the EdmTypeAnnotation class. |
||
26 | * @param IVocabularyAnnotatable $target Element the annotation applies to. |
||
27 | * @param ITerm $term Term bound by the annotation. |
||
28 | * @param string|null $qualifier Qualifier used to discriminate between multiple bindings of the same property or type. |
||
29 | * @param IPropertyValueBinding ...$propertyValueBindings Value annotations for the properties of the type. |
||
30 | */ |
||
31 | public function __construct(IVocabularyAnnotatable $target, ITerm $term, string $qualifier = null, IPropertyValueBinding ...$propertyValueBindings) |
||
32 | { |
||
33 | parent::__construct($target, $term, $qualifier); |
||
34 | $this->propertyValueBindings = $propertyValueBindings; |
||
35 | |||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @inheritDoc |
||
40 | */ |
||
41 | public function getPropertyValueBindings(): array |
||
44 | } |
||
45 | |||
46 | } |