| 1 | <?php |
||
| 11 | class Eloquent extends AbstractSqlTarget |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Allow eloquent builder as query. |
||
| 15 | * |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | protected $allowEloquentBuilderAsQuery = false; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructor. |
||
| 22 | * |
||
| 23 | * @param bool $allowEloquentBuilderAsQuery Whether to allow the execution target to be eloquent builder instead of query builder. |
||
| 24 | */ |
||
| 25 | public function __construct($allowEloquentBuilderAsQuery = false) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritDoc |
||
| 34 | */ |
||
| 35 | public function supports($target, $mode) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritDoc |
||
| 42 | */ |
||
| 43 | protected function getExecutorTraits() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritDoc |
||
| 53 | */ |
||
| 54 | protected function createVisitor(Context $context) |
||
| 58 | } |
||
| 59 |