PHPDoc
This commit is contained in:
parent
cf614b5fd2
commit
774bc82556
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user