@@ 2794-2801 (lines=8) @@ | ||
2791 | * |
|
2792 | * @return mixed |
|
2793 | */ |
|
2794 | public function max() |
|
2795 | { |
|
2796 | if (\count($this->getArray(), \COUNT_NORMAL) === 0) { |
|
2797 | return false; |
|
2798 | } |
|
2799 | ||
2800 | return \max($this->getArray()); |
|
2801 | } |
|
2802 | ||
2803 | /** |
|
2804 | * Merge the new $array into the current array. |
|
@@ 2922-2929 (lines=8) @@ | ||
2919 | * |
|
2920 | * @return mixed |
|
2921 | */ |
|
2922 | public function min() |
|
2923 | { |
|
2924 | if (\count($this->getArray(), \COUNT_NORMAL) === 0) { |
|
2925 | return false; |
|
2926 | } |
|
2927 | ||
2928 | return \min($this->getArray()); |
|
2929 | } |
|
2930 | ||
2931 | /** |
|
2932 | * Get the most used value from the array. |