| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 1 | public function __construct() |
|
| 12 | { |
||
| 13 | 1 | $config = [ |
|
| 14 | 1 | 'name' => 'GlobalPermissions', |
|
| 15 | 1 | 'description' => 'Describe global permissions for current user', |
|
| 16 | 1 | 'fields' => [ |
|
| 17 | 1 | 'create' => [ |
|
| 18 | 1 | 'type' => self::nonNull(self::boolean()), |
|
| 19 | 1 | 'description' => 'Whether the current logged in user can create', |
|
| 20 | 1 | ], |
|
| 21 | 1 | ], |
|
| 22 | 1 | ]; |
|
| 23 | |||
| 24 | 1 | parent::__construct($config); |
|
| 25 | } |
||
| 27 |