Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 10 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
60 | View Code Duplication | public function __toString() |
|
61 | { |
||
62 | $query = "SELECT ".self::AGGREGATION_FUNCTION."(`{$this->field}`) FROM `{$this->table->getName()}`"; |
||
63 | |||
64 | $query .= $this->fromToString(); |
||
65 | $query .= $this->whereToString(); |
||
66 | $query .= $this->limitToString(); |
||
67 | |||
68 | return $query; |
||
69 | } |
||
70 | } |
||
71 |