| Total Complexity | 15 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 4 | class Select extends AbstractQuery |
||
| 5 | { |
||
| 6 | public ?string $where; |
||
| 7 | public ?string $having; |
||
| 8 | public ?string $limit; |
||
| 9 | public string $expression = '*'; |
||
| 10 | public bool $calcFoundRows = false; |
||
| 11 | |||
| 12 | public function expression(string $expression): Select |
||
| 13 | { |
||
| 14 | $this->expression = $expression; |
||
| 15 | return $this; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function where(string $where): Select |
||
| 19 | { |
||
| 20 | $this->where = $where; |
||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function having(string $having): Select |
||
| 25 | { |
||
| 26 | $this->having = $having; |
||
| 27 | return $this; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function limit(string $limit): Select |
||
| 31 | { |
||
| 32 | if (!empty($limit)) { |
||
| 33 | $this->limit = $limit; |
||
| 34 | } |
||
| 35 | return $this; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function order(string $order): Select |
||
| 44 | } |
||
| 45 | |||
| 46 | public function calcFoundRows(): Select |
||
| 47 | { |
||
| 50 | } |
||
| 51 | |||
| 52 | public function __toString(): string |
||
| 70 |