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