| Total Complexity | 7 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class MemberCollection extends EntityCollection |
||
| 11 | { |
||
| 12 | public function add(EntityInterface $entity) |
||
| 13 | { |
||
| 14 | assert($entity instanceof Member); |
||
| 15 | |||
| 16 | return parent::add($entity); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return array |
||
| 21 | */ |
||
| 22 | public function getAdminIds() |
||
| 23 | { |
||
| 24 | return $this->_getIds('admin'); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | public function getMemberIds() |
||
| 31 | { |
||
| 32 | return $this->_getIds('member'); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function getReadonlyIds() |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $type |
||
| 45 | * |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | private function _getIds($type) |
||
| 60 |