public function add($key, $value = null)
    {
        if (is_array($key)) {
            array_map([$this, __METHOD__], array_keys($key), $key);

            return $this;
        }

        $this->options[$key] = $this->buildValue($value, $key);

        return $this;
    }
public function add($key, $value = null)
    {
        if (is_array($key)) {
            array_map([$this, __METHOD__], array_keys($key), $key);

            return $this;
        }

        $this->options[$key] = $this->buildValue($value, $key);

        return $this;
    }
public function add ( $ key , $ value = null ) { if ( is_array ( $ key ) ) { array_map ( [ $ this , __METHOD__ ] , array_keys ( $ key ) , $ key ) ; return $ this ; } $ this -> options [ $ key ] = $ this -> buildValue ( $ value , $ key ) ; return $ this ; }
Adds a value.

You can also pass an array with the keys and values as the only argument.
@param string|array $key Key or array with keys and values
@param mixed|null $value Value
@return $this
@uses buildValue()
@uses $options
Adds a value .