src/Koldy/Request.php
public static function only(...$params): bool
    {
        if (static::parametersCount() != count(is_array($params[0]) ? $params[0] : $params)) {
            return false;
        }

        return static::containsParams(...$params);
    }
public static function only(...$params): bool
    {
        if (static::parametersCount() != count(is_array($params[0]) ? $params[0] : $params)) {
            return false;
        }

        return static::containsParams(...$params);
    }
public static function only ( ... $ params ) : bool { if ( static :: parametersCount ( ) != count ( is_array ( $ params [ 0 ] ) ? $ params [ 0 ] : $ params ) ) { return false ; } return static :: containsParams ( ... $ params ) ; }
Return true if request contains only parameters from method argument. If there are more parameters then defined,
method will return false.

@param mixed ...$params

@return bool
@throws Exception
Return true if request contains only parameters from method argument . If there are more parameters then defined method will return false .