1 | <?php |
||
26 | class ReadOneQuery extends ReadQuery |
||
27 | { |
||
28 | /** |
||
29 | * Constructor |
||
30 | * |
||
31 | * @param Connection $connection |
||
32 | * @param ModelInterface $model |
||
33 | * @param RelationFactoryInterface $factory |
||
34 | * @param AccessorInterface $accessor |
||
35 | * @param EventDispatcherInterface $dispatcher |
||
36 | */ |
||
37 | public function __construct(Connection $connection, ModelInterface $model, RelationFactoryInterface $factory, AccessorInterface $accessor, EventDispatcherInterface $dispatcher) |
||
42 | |||
43 | /** |
||
44 | * Executes query |
||
45 | * After execution query is reset |
||
46 | * |
||
47 | * @return mixed |
||
48 | * @throws QueryException |
||
49 | */ |
||
50 | public function execute() |
||
71 | |||
72 | /** |
||
73 | * Resets adapter |
||
74 | * |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function reset() |
||
84 | } |
||
85 |