| 1 | <?php |
||
| 11 | abstract class AbstractQuery implements QueryInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var MessageInterface |
||
| 15 | */ |
||
| 16 | protected $message; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var RethinkInterface |
||
| 20 | */ |
||
| 21 | protected $rethink; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param RethinkInterface $rethink |
||
| 25 | * @param MessageInterface $message |
||
| 26 | */ |
||
| 27 | 13 | public function __construct(RethinkInterface $rethink, MessageInterface $message = null) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return \Iterable|ResponseInterface |
||
| 35 | */ |
||
| 36 | 13 | public function run() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | abstract public function toArray(): array; |
||
| 47 | } |
||
| 48 |