| Total Complexity | 10 |
| Total Lines | 112 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CollectionDoc extends TypeDoc |
||
| 8 | { |
||
| 9 | /*** Validation ***/ |
||
| 10 | /** @var TypeDoc[] */ |
||
| 11 | private $siblingList = []; |
||
| 12 | /** @var null|int */ |
||
| 13 | private $minItem = null; |
||
| 14 | /** @var null|int */ |
||
| 15 | private $maxItem = null; |
||
| 16 | /** @var bool */ |
||
| 17 | private $allowExtraSibling = false; |
||
| 18 | /** @var bool */ |
||
| 19 | private $allowMissingSibling = false; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param TypeDoc $doc |
||
| 23 | * |
||
| 24 | * @return CollectionDoc |
||
| 25 | */ |
||
| 26 | public function addSibling(TypeDoc $doc) : CollectionDoc |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param int $minItem |
||
| 35 | * |
||
| 36 | * @return CollectionDoc |
||
| 37 | */ |
||
| 38 | public function setMinItem(int $minItem) : CollectionDoc |
||
| 39 | { |
||
| 40 | $this->minItem = $minItem; |
||
| 41 | |||
| 42 | return $this; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param int $maxItem |
||
| 47 | * |
||
| 48 | * @return CollectionDoc |
||
| 49 | */ |
||
| 50 | public function setMaxItem(int $maxItem) : CollectionDoc |
||
| 51 | { |
||
| 52 | $this->maxItem = $maxItem; |
||
| 53 | |||
| 54 | return $this; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param bool $allowExtraSibling |
||
| 59 | * |
||
| 60 | * @return CollectionDoc |
||
| 61 | */ |
||
| 62 | public function setAllowExtraSibling(bool $allowExtraSibling) : CollectionDoc |
||
| 63 | { |
||
| 64 | $this->allowExtraSibling = $allowExtraSibling; |
||
| 65 | |||
| 66 | return $this; |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param bool $allowMissingSibling |
||
| 71 | * |
||
| 72 | * @return CollectionDoc |
||
| 73 | */ |
||
| 74 | public function setAllowMissingSibling(bool $allowMissingSibling) : CollectionDoc |
||
| 75 | { |
||
| 76 | $this->allowMissingSibling = $allowMissingSibling; |
||
| 77 | |||
| 78 | return $this; |
||
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @return null|int |
||
| 83 | */ |
||
| 84 | public function getMinItem() |
||
| 85 | { |
||
| 86 | return $this->minItem; |
||
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return null|int |
||
| 91 | */ |
||
| 92 | public function getMaxItem() |
||
| 93 | { |
||
| 94 | return $this->maxItem; |
||
| 95 | } |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @return bool |
||
| 99 | */ |
||
| 100 | public function isAllowExtraSibling() : bool |
||
| 101 | { |
||
| 102 | return $this->allowExtraSibling; |
||
| 103 | } |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @return bool |
||
| 107 | */ |
||
| 108 | public function isAllowMissingSibling() : bool |
||
| 111 | } |
||
| 112 | |||
| 113 | /** |
||
| 114 | * @return TypeDoc[] |
||
| 115 | */ |
||
| 116 | public function getSiblingList() : array |
||
| 117 | { |
||
| 119 | } |
||
| 120 | } |
||
| 121 |