1 | <?php |
||
22 | class FixedAdapter implements AdapterInterface |
||
23 | { |
||
24 | private $nbResults; |
||
25 | private $results; |
||
26 | |||
27 | /** |
||
28 | * @param int $nbResults |
||
29 | * @param array|\Traversable $results |
||
30 | */ |
||
31 | 4 | public function __construct($nbResults, $results) |
|
36 | |||
37 | /** |
||
38 | * {@inheritDoc} |
||
39 | */ |
||
40 | 1 | public function getNbResults() |
|
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | 2 | public function getSlice($offset, $length) |
|
52 | } |
||
53 |