1 | <?php |
||
21 | class DoctrineCollectionAdapter implements AdapterInterface |
||
22 | { |
||
23 | private $collection; |
||
24 | |||
25 | /** |
||
26 | * Constructor. |
||
27 | * |
||
28 | * @param Collection $collection A Doctrine collection. |
||
29 | */ |
||
30 | 4 | public function __construct(Collection $collection) |
|
34 | |||
35 | /** |
||
36 | * Returns the collection. |
||
37 | * |
||
38 | * @return Collection The collection. |
||
39 | */ |
||
40 | 1 | public function getCollection() |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 1 | public function getNbResults() |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 2 | public function getSlice($offset, $length) |
|
60 | } |
||
61 |