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' => 'Permissions', |
||
15 | 'description' => 'Describe permissions for current user', |
||
16 | 'fields' => [ |
||
17 | 'create' => [ |
||
18 | 'type' => self::nonNull(self::boolean()), |
||
19 | 'description' => 'Whether the current logged in user can create', |
||
20 | ], |
||
21 | 'read' => [ |
||
22 | 'type' => self::nonNull(self::boolean()), |
||
23 | 'description' => 'Whether the current logged in user can read', |
||
24 | ], |
||
25 | 'update' => [ |
||
26 | 'type' => self::nonNull(self::boolean()), |
||
27 | 'description' => 'Whether the current logged in user can update', |
||
28 | ], |
||
29 | 'delete' => [ |
||
30 | 'type' => self::nonNull(self::boolean()), |
||
31 | 'description' => 'Whether the current logged in user can delete', |
||
32 | ], |
||
33 | ], |
||
34 | ]; |
||
35 | |||
36 | parent::__construct($config); |
||
37 | } |
||
39 |