| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function __construct() |
||
| 12 | { |
||
| 13 | $config = [ |
||
| 14 | 'name' => 'AclPrivilegeConfiguration', |
||
| 15 | 'description' => 'Describe an ACL privilege configuration', |
||
| 16 | 'fields' => [ |
||
| 17 | 'privilege' => [ |
||
| 18 | 'type' => self::string(), |
||
| 19 | 'description' => 'Name of the ACL privilege', |
||
| 20 | ], |
||
| 21 | 'allowed' => [ |
||
| 22 | 'type' => self::nonNull(self::boolean()), |
||
| 23 | 'description' => 'Whether the privilege is allowed', |
||
| 24 | ], |
||
| 25 | 'allowIf' => [ |
||
| 26 | 'type' => self::nonNull(self::listOf(self::nonNull(self::string()))), |
||
| 27 | 'description' => 'List of all human readable conditions that would allow the privilege', |
||
| 28 | ], |
||
| 29 | 'denyIf' => [ |
||
| 30 | 'type' => self::nonNull(self::listOf(self::nonNull(self::string()))), |
||
| 31 | 'description' => 'List of all human readable conditions that would allow the privilege', |
||
| 32 | ], |
||
| 33 | ], |
||
| 34 | ]; |
||
| 35 | |||
| 36 | parent::__construct($config); |
||
| 37 | } |
||
| 39 |