public function setTransferEncoding($encoding)
    {
        $encoding = strtolower($encoding);
        if (!in_array($encoding, $this->_transferEncodingAvailable)) {
            throw new InvalidArgumentException(
                sprintf(
                    'Transfer encoding not available. Can be : %s.',
                    implode(', ', $this->_transferEncodingAvailable)
                )
            );
        }
        $this->transferEncoding = $encoding;

        return $this;
    }
public function setTransferEncoding($encoding)
    {
        $encoding = strtolower($encoding);
        if (!in_array($encoding, $this->_transferEncodingAvailable)) {
            throw new InvalidArgumentException(
                sprintf(
                    'Transfer encoding not available. Can be : %s.',
                    implode(', ', $this->_transferEncodingAvailable)
                )
            );
        }
        $this->transferEncoding = $encoding;

        return $this;
    }
public function setTransferEncoding ( $ encoding ) { $ encoding = strtolower ( $ encoding ) ; if ( ! in_array ( $ encoding , $ this -> _transferEncodingAvailable ) ) { throw new InvalidArgumentException ( sprintf ( 'Transfer encoding not available. Can be : %s.' , implode ( ', ' , $ this -> _transferEncodingAvailable ) ) ) ; } $ this -> transferEncoding = $ encoding ; return $ this ; }
TransferEncoding setter.

@param string|null $encoding Encoding set.
@return $this
TransferEncoding setter .