Total Complexity | 7 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class TagUnion extends Tag |
||
10 | { |
||
11 | public const ATTRIBUTE_MEMBER_TYPES = 'memberTypes'; |
||
12 | |||
13 | 2 | public function getAttributeMemberTypes(): array |
|
14 | { |
||
15 | 2 | return $this->parseMemberTypes(); |
|
16 | } |
||
17 | |||
18 | 4 | public function hasMemberTypesAsChildren(): bool |
|
19 | { |
||
20 | 4 | return 0 < count($this->getMemberTypesChildren()); |
|
21 | } |
||
22 | |||
23 | 6 | public function getMemberTypesChildren(): array |
|
24 | { |
||
25 | 6 | return $this->getChildrenByName(AbstractDocument::TAG_SIMPLE_TYPE); |
|
26 | } |
||
27 | |||
28 | 2 | protected function parseMemberTypes(): array |
|
40 | } |
||
41 | } |
||
42 |