| 1 | <?php |
||
| 12 | class ColumnAggregationFunction |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $column; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $aggregation_type; |
||
| 23 | |||
| 24 | public static $aggregation_type_sum = 'sum'; |
||
| 25 | |||
| 26 | public static $aggregation_type_avg = 'avg'; |
||
| 27 | |||
| 28 | public static $aggregation_type_min = 'min'; |
||
| 29 | |||
| 30 | public static $aggregation_type_max = 'max'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * ColumnSummary constructor. |
||
| 34 | * @param string $column |
||
| 35 | */ |
||
| 36 | public function __construct($column) |
||
| 40 | |||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getAggregationType() |
||
| 49 | |||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $value use ColumnAggregationFunction::$aggregation_type_... |
||
| 53 | * @return ColumnSummary |
||
| 54 | */ |
||
| 55 | public function setAggregationType($value) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getColumn() |
||
| 68 | } |