| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function typeFields(): array |
||
| 31 | { |
||
| 32 | return [ |
||
| 33 | 'id' => [ |
||
| 34 | 'type' => Type::nonNull(Type::id()), |
||
| 35 | 'description' => 'User identifier', |
||
| 36 | ], |
||
| 37 | 'name' => [ |
||
| 38 | 'type' => Type::nonNull(Type::string()), |
||
| 39 | 'description' => 'User name', |
||
| 40 | ], |
||
| 41 | 'avatar' => [ |
||
| 42 | 'type' => Type::nonNull(Type::string()), |
||
| 43 | 'description' => 'User avatar url', |
||
| 44 | ], |
||
| 45 | 'token' => [ |
||
| 46 | 'type' => Type::string(), |
||
| 47 | 'description' => 'User secret auth token', |
||
| 48 | ], |
||
| 49 | 'is_confirmed' => [ |
||
| 50 | 'type' => Type::nonNull(Type::boolean()), |
||
| 51 | 'description' => 'User confirmation status', |
||
| 52 | ], |
||
| 53 | ]; |
||
| 54 | } |
||
| 55 | } |
||
| 56 |