| 1 | <?php |
||
| 19 | class ArrayAdapter implements AdapterInterface |
||
| 20 | { |
||
| 21 | private $array; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Constructor. |
||
| 25 | * |
||
| 26 | * @param array $array The array. |
||
| 27 | */ |
||
| 28 | 7 | public function __construct(array $array) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Returns the array. |
||
| 35 | * |
||
| 36 | * @return array The array. |
||
| 37 | */ |
||
| 38 | 1 | public function getArray() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 3 | public function getNbResults() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 3 | public function getSlice($offset, $length) |
|
| 58 | } |
||
| 59 |