Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 60% |
Changes | 0 |
1 | <?php |
||
9 | class ElementRef extends AbstractElementSingle |
||
10 | { |
||
11 | /** |
||
12 | * @var ElementDef |
||
13 | */ |
||
14 | protected $wrapped; |
||
15 | |||
16 | 58 | public function __construct(ElementDef $element) |
|
17 | { |
||
18 | 58 | parent::__construct($element->getSchema(), $element->getName()); |
|
19 | 58 | $this->wrapped = $element; |
|
20 | 58 | } |
|
21 | |||
22 | 1 | public function getName(): string |
|
23 | { |
||
24 | 1 | 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 |