public function encode()
    {
        return \pack('CCnnCx', 1, $this->getType()->value(), $this->getRequestId(), $this->getLength(), $this->getPaddingLength());
    }
public function encode()
    {
        return \pack('CCnnCx', 1, $this->getType()->value(), $this->getRequestId(), $this->getLength(), $this->getPaddingLength());
    }
public function encode ( ) { return \ pack ( 'CCnnCx' , 1 , $ this -> getType ( ) -> value ( ) , $ this -> getRequestId ( ) , $ this -> getLength ( ) , $ this -> getPaddingLength ( ) ) ; }
Returns the encoded header as a string.

@return string
Returns the encoded header as a string .