| Total Complexity | 6 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | class SimpleType extends Type |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Restriction|null |
||
| 13 | */ |
||
| 14 | protected $restriction; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var SimpleType[] |
||
| 18 | */ |
||
| 19 | protected $unions = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var SimpleType|null |
||
| 23 | */ |
||
| 24 | protected $list; |
||
| 25 | |||
| 26 | 15 | public function getRestriction(): ?Restriction |
|
| 29 | } |
||
| 30 | |||
| 31 | 74 | public function setRestriction(Restriction $restriction): void |
|
| 32 | { |
||
| 33 | 74 | $this->restriction = $restriction; |
|
| 34 | 74 | } |
|
| 35 | |||
| 36 | 74 | public function addUnion(self $type): void |
|
| 37 | { |
||
| 38 | 74 | $this->unions[] = $type; |
|
| 39 | 74 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return SimpleType[] |
||
| 43 | */ |
||
| 44 | 2 | public function getUnions(): array |
|
| 45 | { |
||
| 46 | 2 | return $this->unions; |
|
| 47 | } |
||
| 48 | |||
| 49 | public function getList(): ?self |
||
| 52 | } |
||
| 53 | |||
| 54 | 74 | public function setList(self $list): void |
|
| 57 | 74 | } |
|
| 58 | } |
||
| 59 |