1 | <?php |
||
18 | class FlexStore implements StoreInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var Source\SourceInterface |
||
22 | */ |
||
23 | protected $source; |
||
24 | |||
25 | /** |
||
26 | * @param Source\SourceInterface $source |
||
27 | */ |
||
28 | 41 | public function __construct(Source\SourceInterface $source) |
|
32 | |||
33 | /** |
||
34 | * Return store search options. |
||
35 | * |
||
36 | * @return Options |
||
37 | */ |
||
38 | 16 | public function getOptions() |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 2 | public function getSource() |
|
50 | |||
51 | /** |
||
52 | * Return the underlying store data as a resultset. |
||
53 | * |
||
54 | * @throws Exception\EmptyQueryException when query is empty |
||
55 | * @throws Exception\ErrorException whenever an error occured |
||
56 | * |
||
57 | * @param Options $options |
||
58 | * |
||
59 | * @return ResultSet |
||
60 | */ |
||
61 | 30 | public function getData(Options $options = null) |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 12 | public function getColumnModel() |
|
73 | } |
||
74 |