1 | <?php |
||
13 | final class SearchController |
||
14 | { |
||
15 | const ACTION = 'findAction'; |
||
16 | |||
17 | /** @var string */ |
||
18 | private $fqcn; |
||
19 | /** @var CriteriaConfiguratorInterface */ |
||
20 | private $configurator; |
||
21 | /** @var Selectable */ |
||
22 | private $repository; |
||
23 | /** @var EventDispatcherInterface */ |
||
24 | private $evm; |
||
25 | |||
26 | /** |
||
27 | * ReadController constructor. |
||
28 | * |
||
29 | * @param string $fqcn |
||
30 | * @param Selectable $repository |
||
31 | * @param CriteriaConfiguratorInterface $configurator |
||
32 | * @param EventDispatcherInterface $evm |
||
33 | */ |
||
34 | 4 | public function __construct( |
|
45 | |||
46 | /** |
||
47 | * Performs search of entities and returns them |
||
48 | * |
||
49 | * @param array $criteria |
||
50 | * @param array $order |
||
51 | * @param int $limit |
||
52 | * @param int $offset |
||
53 | * |
||
54 | * @return object[] |
||
55 | * @throws CriteriaConfigurationException |
||
56 | */ |
||
57 | 4 | public function findAction(array $criteria, array $order = [], $limit = 10, $offset = 0) |
|
68 | } |
||
69 |