| 1 | <?php |
||
| 13 | class FlexStore implements StoreInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * |
||
| 17 | * @var Source\SourceInterface |
||
| 18 | */ |
||
| 19 | protected $source; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * |
||
| 23 | * @param Source\SourceInterface $source |
||
| 24 | */ |
||
| 25 | public function __construct(Source\SourceInterface $source) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Return store search options |
||
| 32 | * @return Options |
||
| 33 | */ |
||
| 34 | public function getOptions() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function getSource() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Return the underlying store data as a resultset |
||
| 50 | * |
||
| 51 | * @throws Exception\EmptyQueryException when query is empty |
||
| 52 | * @throws Exception\ErrorException whenever an error occured |
||
| 53 | * @param Options $options |
||
| 54 | * @return ResultSet |
||
| 55 | */ |
||
| 56 | public function getData(Options $options = null) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | public function getColumnModel() |
||
| 69 | } |
||
| 70 |