Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
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' => 'AclResourceConfiguration', |
||
15 | 'description' => 'Describe an ACL resource configuration', |
||
16 | 'fields' => [ |
||
17 | 'resource' => [ |
||
18 | 'type' => self::nonNull(self::string()), |
||
19 | 'description' => 'Name of the ACL resource', |
||
20 | ], |
||
21 | 'privileges' => [ |
||
22 | 'type' => self::nonNull(self::listOf(self::nonNull(_types()->get(AclPrivilegeConfigurationType::class)))), |
||
23 | 'description' => 'List of all privileges for that resource', |
||
24 | ], |
||
25 | ], |
||
26 | ]; |
||
27 | |||
28 | parent::__construct($config); |
||
29 | } |
||
31 |