Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | final class PorpaginasAdapter implements AdapterInterface |
||
9 | { |
||
10 | private Result $result; |
||
11 | |||
12 | 2 | public function __construct(Result $result) |
|
13 | { |
||
14 | 2 | $this->result = $result; |
|
15 | 2 | } |
|
16 | |||
17 | 2 | public function getNbResults(): int |
|
18 | { |
||
19 | 2 | return $this->result->count(); |
|
20 | } |
||
21 | |||
22 | 1 | public function getSlice($offset, $length): iterable |
|
25 | } |
||
26 | } |
||
27 |