| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 6 | public function getRules() |
|
| 23 | { |
||
| 24 | return [ |
||
| 25 | 6 | 'name' => ['type' => TypeMap::TYPE_STRING, 'required' => true], |
|
| 26 | 6 | 'fields' => ['type' => TypeMap::TYPE_ARRAY_OF_FIELDS], |
|
| 27 | 6 | 'description' => ['type' => TypeMap::TYPE_STRING], |
|
| 28 | 6 | 'resolveType' => ['type' => TypeMap::TYPE_FUNCTION] |
|
| 29 | 6 | ]; |
|
| 30 | } |
||
| 31 | |||
| 47 | } |