| 1 | <?php |
||
| 8 | abstract class AbstractQuery implements QueryInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var MessageInterface |
||
| 12 | */ |
||
| 13 | protected $message; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var RethinkInterface |
||
| 17 | */ |
||
| 18 | protected $rethink; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param RethinkInterface $rethink |
||
| 22 | * @param MessageInterface $message |
||
| 23 | */ |
||
| 24 | 13 | public function __construct(RethinkInterface $rethink, MessageInterface $message = null) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | 13 | public function run() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | abstract public function toArray(): array; |
||
| 44 | } |
||
| 45 |