@@ 371-379 (lines=9) @@ | ||
368 | * |
|
369 | * @return mixed |
|
370 | */ |
|
371 | public function min($column) |
|
372 | { |
|
373 | $this->compileWheres(); |
|
374 | $result = $this->query->min($column) |
|
375 | ->getField($column)->rDefault(null) |
|
376 | ->run(); |
|
377 | ||
378 | return $result; |
|
379 | } |
|
380 | ||
381 | /** |
|
382 | * Retrieve the maximum value of a given column. |
|
@@ 388-396 (lines=9) @@ | ||
385 | * |
|
386 | * @return mixed |
|
387 | */ |
|
388 | public function max($column) |
|
389 | { |
|
390 | $this->compileWheres(); |
|
391 | $result = $this->query->max($column) |
|
392 | ->getField($column)->rDefault(null) |
|
393 | ->run(); |
|
394 | ||
395 | return $result; |
|
396 | } |
|
397 | ||
398 | /** |
|
399 | * Retrieve the average of the values of a given column. |