public function parseMessage($data)
    {
        $message = new Message();
        if ($this->parse($data, $message) !== $message) {
            throw new InvalidArgumentException('Unable to parse binary message');
        }

        return $message;
    }
public function parseMessage($data)
    {
        $message = new Message();
        if ($this->parse($data, $message) !== $message) {
            throw new InvalidArgumentException('Unable to parse binary message');
        }

        return $message;
    }
public function parseMessage ( $ data ) { $ message = new Message ( ) ; if ( $ this -> parse ( $ data , $ message ) !== $ message ) { throw new InvalidArgumentException ( 'Unable to parse binary message' ) ; } return $ message ; }
Parses the given raw binary message into a Message object

@param string $data
@throws InvalidArgumentException
@return Message
Parses the given raw binary message into a Message object