Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class NoCursorId extends RuntimeException |
||
17 | { |
||
18 | /** |
||
19 | * @var Type |
||
20 | */ |
||
21 | private $type; |
||
22 | |||
23 | public static function forType(Type $type): self |
||
24 | { |
||
25 | $self = new self('There is no cursor id to get more results.'); |
||
26 | |||
27 | $self->type = $type; |
||
28 | return $self; |
||
29 | } |
||
30 | |||
31 | public function getType(): Type |
||
34 | } |
||
35 | } |
||
36 |