public function encode(MessageInterface $message)
    {
        $json = parent::encode($message);

        return gzcompress($json, $this->compressionLevel);
    }
public function encode(MessageInterface $message)
    {
        $json = parent::encode($message);

        return gzcompress($json, $this->compressionLevel);
    }
public function encode ( MessageInterface $ message ) { $ json = parent :: encode ( $ message ) ; return gzcompress ( $ json , $ this -> compressionLevel ) ; }
Encodes a given message

@param  MessageInterface $message
@return string
Encodes a given message