public function set($name, $value = null)
    {
        if (!is_array($name)) {
            $name = [$name => $value];
        }

        foreach ($name as $name => $value) {
            $name = self::normalizeName($name);
            $value = self::normalizeValue($value);

            $this->parameters[$name] = $value;
        }
    }
public function set($name, $value = null)
    {
        if (!is_array($name)) {
            $name = [$name => $value];
        }

        foreach ($name as $name => $value) {
            $name = self::normalizeName($name);
            $value = self::normalizeValue($value);

            $this->parameters[$name] = $value;
        }
    }
public function set ( $ name , $ value = null ) { if ( ! is_array ( $ name ) ) { $ name = [ $ name => $ value ] ; } foreach ( $ name as $ name => $ value ) { $ name = self :: normalizeName ( $ name ) ; $ value = self :: normalizeValue ( $ value ) ; $ this -> parameters [ $ name ] = $ value ; } }
Save a value.

@param string|array $name
@param mixed        $value
Save a value .