| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 1 | public function build($config) |
|
| 21 | { |
||
| 22 | 1 | $config->addFields([ |
|
| 23 | 'hasNextPage' => [ |
||
| 24 | 1 | 'type' => new NonNullType(new BooleanType()), |
|
| 25 | 1 | 'description' => 'When paginating forwards, are there more items?' |
|
| 26 | ], |
||
| 27 | 'hasPreviousPage' => [ |
||
| 28 | 1 | 'type' => new NonNullType(new BooleanType()), |
|
| 29 | 1 | 'description' => 'When paginating backwards, are there more items?' |
|
| 30 | ], |
||
| 31 | 'startCursor' => [ |
||
| 32 | 1 | 'type' => new StringType(), |
|
| 33 | 1 | 'description' => 'When paginating backwards, the cursor to continue.' |
|
| 34 | ], |
||
| 35 | 'endCursor' => [ |
||
| 36 | 1 | 'type' => new StringType(), |
|
| 37 | 1 | 'description' => 'When paginating forwards, the cursor to continue.' |
|
| 38 | ], |
||
| 39 | ]); |
||
| 40 | 1 | } |
|
| 41 | |||
| 47 | } |