1 | <?php |
||
19 | class NullAdapter implements AdapterInterface |
||
20 | { |
||
21 | private $nbResults; |
||
22 | |||
23 | /** |
||
24 | * Constructor. |
||
25 | * |
||
26 | * @param integer $nbResults Total item count. |
||
27 | */ |
||
28 | 6 | public function __construct($nbResults = 0) |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 1 | public function getNbResults() |
|
40 | |||
41 | /** |
||
42 | * The following methods are derived from code of the Zend Framework |
||
43 | * Code subject to the new BSD license (http://framework.zend.com/license/new-bsd). |
||
44 | * |
||
45 | * Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
||
46 | * |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 4 | public function getSlice($offset, $length) |
|
59 | |||
60 | 2 | private function calculateNullArrayLength($offset, $length) |
|
69 | |||
70 | 2 | private function remainCount($offset) |
|
74 | |||
75 | 2 | private function createNullArray($length) |
|
79 | } |
||
80 |