| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 2 | public function __construct($func, $column, $alias = '') { |
|
| 35 | 2 | $format = '%1$s(%2$s) as %3$s'; |
|
| 36 | 2 | if ($func === static::COUNT_DISTINCT) { |
|
| 37 | $format = '%1$s(distinct %2$s) as %3$s'; |
||
| 38 | $func = static::COUNT; |
||
| 39 | } |
||
| 40 | |||
| 41 | 2 | parent::__construct($format); |
|
| 42 | |||
| 43 | 2 | $this->func = $func; |
|
| 44 | 2 | $this->column = $column; |
|
| 45 | 2 | $this->alias = $alias; |
|
| 46 | 2 | } |
|
| 47 | |||
| 60 |