| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | class Role extends AbstractAclPart { |
||
| 13 | |||
| 14 | 25 | public function __construct(?string $name = null, $parents = '') { |
|
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $parents = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function getParents() { |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | 19 | public function getParentsArray() { |
|
| 38 | 19 | return ($this->parents == null) ? [] : \explode(',', $this->parents); |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * |
||
| 43 | * @param array|string $parents |
||
| 44 | */ |
||
| 45 | 25 | public function setParents($parents) { |
|
| 50 | } |
||
| 51 | } |
||
| 53 |