public function setHeader(string $header, $value)
    {
        if (!is_scalar($value))
            throw new \InvalidArgumentException("Value should be a scalar");

        $header = static::normalizeHeader($header);
        $this->headers[$header] = $value;
        return $this;
    }
public function setHeader(string $header, $value)
    {
        if (!is_scalar($value))
            throw new \InvalidArgumentException("Value should be a scalar");

        $header = static::normalizeHeader($header);
        $this->headers[$header] = $value;
        return $this;
    }
public function setHeader ( string $ header , $ value ) { if ( ! is_scalar ( $ value ) ) throw new \ InvalidArgumentException ( "Value should be a scalar" ) ; $ header = static :: normalizeHeader ( $ header ) ; $ this -> headers [ $ header ] = $ value ; return $ this ; }
Set a header on the result
@param string $header The name of the header. Will be normalized
@param scalar $value The value for the header.
@return $this Provides fluent interface
Set a header on the result