Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Role | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| getDefaults | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BO\Zmsentities; |
| 4 | |
| 5 | /** |
| 6 | * @property int $id |
| 7 | * @property string $name |
| 8 | * @property string $description |
| 9 | * @property array $permissions |
| 10 | * @property int $assignedUserCount |
| 11 | */ |
| 12 | class Role extends Schema\Entity |
| 13 | { |
| 14 | public const string PRIMARY = 'id'; |
| 15 | |
| 16 | public static $schema = "role.json"; |
| 17 | |
| 18 | #[\Override] |
| 19 | public function getDefaults(): array |
| 20 | { |
| 21 | return [ |
| 22 | 'permissions' => [], |
| 23 | 'assignedUserCount' => 0, |
| 24 | ]; |
| 25 | } |
| 26 | } |