protected function set($key, $value, bool $variadic = false): bool
    {
        if (null === $key) {
            $this->_values[] = $value;
        } elseif ($variadic) {
            $this->_values[$key] = \array_merge($this->_values[$key], (array) $value);
        } else {
            $this->_values[$key] = $value;
        }

        return !\in_array($value, [true, false, null], true);
    }
protected function set($key, $value, bool $variadic = false): bool
    {
        if (null === $key) {
            $this->_values[] = $value;
        } elseif ($variadic) {
            $this->_values[$key] = \array_merge($this->_values[$key], (array) $value);
        } else {
            $this->_values[$key] = $value;
        }

        return !\in_array($value, [true, false, null], true);
    }
protected function set ( $ key , $ value , bool $ variadic = false ) : bool { if ( null === $ key ) { $ this -> _values [ ] = $ value ; } elseif ( $ variadic ) { $ this -> _values [ $ key ] = \ array_merge ( $ this -> _values [ $ key ] , ( array ) $ value ) ; } else { $ this -> _values [ $ key ] = $ value ; } return ! \ in_array ( $ value , [ true , false , null ] , true ) ; }
Set a raw value.

@param mixed $key
@param mixed $value
@param bool  $variadic

@return bool
Set a raw value .