src/Koldy/Request.php
public static function requireParamsObj(string ...$requiredParameters): stdClass
    {
        $class = new stdClass();

        foreach (static::requireParams(...$requiredParameters) as $param => $value) {
            $class->$param = $value;
        }

        return $class;
    }
public static function requireParamsObj(string ...$requiredParameters): stdClass
    {
        $class = new stdClass();

        foreach (static::requireParams(...$requiredParameters) as $param => $value) {
            $class->$param = $value;
        }

        return $class;
    }
public static function requireParamsObj ( string ... $ requiredParameters ) : stdClass { $ class = new stdClass ( ) ; foreach ( static :: requireParams ( ... $ requiredParameters ) as $ param => $ value ) { $ class -> $ param = $ value ; } return $ class ; }
Get required parameters as object

@param string ...$requiredParameters

@return stdClass
@throws BadRequestException
@throws Exception
Get required parameters as object