=> . */ public static function getAll(): array { static::loadParams(); return static::$params; } /** * Set value by parameter name of API object into $params (load parameters if needed). * * @static * * @param string $name API object parameter name. * @param string $value API object parameter value. */ public static function set(string $name, string $value): void { static::loadParams($name, false); if (array_key_exists($name, static::$params)) { static::$params[$name] = $value; } } }