| Total Complexity | 6 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | trait ColumnTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $column = []; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array|string $column |
||
| 16 | * @param boolean $clearAll |
||
| 17 | * |
||
| 18 | * @return $this |
||
| 19 | * @throws QueryBuilderException |
||
| 20 | */ |
||
| 21 | public function column($column, bool $clearAll = false) |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | protected function buildColumnQueryPart(): string |
||
| 48 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.