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

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

        return $class;
    }