Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class EncryptableQueryBuilder extends Builder { |
||
8 | |||
9 | private $model; |
||
10 | |||
11 | /** |
||
12 | * EncryptableQueryBuilder constructor. |
||
13 | * @param ConnectionInterface $connection |
||
14 | * @param Encryptable $model |
||
15 | */ |
||
16 | public function __construct(ConnectionInterface $connection, $model) |
||
17 | { |
||
18 | parent::__construct($connection, $connection->getQueryGrammar(), $connection->getPostProcessor()); |
||
19 | $this->model = $model; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param array|\Closure|string $column |
||
24 | * @param null $operator |
||
|
|||
25 | * @param null $value |
||
26 | * @param string $boolean |
||
27 | * @return Builder |
||
28 | * @throws \Exception |
||
29 | */ |
||
30 | public function where($column, $operator = null, $value = null, $boolean = 'and') |
||
38 | |||
39 | } |
||
40 | } |