This commit is contained in:
Ivor Barhansky 2023-11-10 17:53:17 +02:00
parent cf614b5fd2
commit 774bc82556

View File

@ -4,7 +4,13 @@ namespace Helper;
class Comparsion
{
public static function minimax($value, $minimum, $maximum)
/** Íå äà¸ò çíà÷åíèþ âûéòè çà ïðåäåëû.
* @param $value
* @param $minimum
* @param $maximum
* @return mixed
*/
public static function minimax($value, $minimum, $maximum): mixed
{
if ($value < $minimum) {
$value = $minimum;