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