Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class ElementRef extends AbstractElementSingle |
||
10 | { |
||
11 | /** |
||
12 | * @var ElementDef |
||
13 | */ |
||
14 | protected $wrapped; |
||
15 | |||
16 | public function __construct(ElementDef $element) |
||
17 | { |
||
18 | parent::__construct($element->getSchema(), $element->getName()); |
||
19 | $this->wrapped = $element; |
||
20 | } |
||
21 | |||
22 | public function getName(): string |
||
23 | { |
||
24 | return $this->wrapped->getName(); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return ElementDef |
||
29 | */ |
||
30 | public function getReferencedElement(): ElementDef |
||
33 | } |
||
34 | |||
35 | public function getType(): ?Type |
||
38 | } |
||
39 | } |
||
40 |