public function toMessage()
    {
        return array_merge($this->attributes, [
            'topic' => $this->topic,
            'event' => $this->name,
            'version' => $this->version,
        ]);
    }
public function toMessage()
    {
        return array_merge($this->attributes, [
            'topic' => $this->topic,
            'event' => $this->name,
            'version' => $this->version,
        ]);
    }
public function toMessage ( ) { return array_merge ( $ this -> attributes , [ 'topic' => $ this -> topic , 'event' => $ this -> name , 'version' => $ this -> version , ] ) ; }
Return the event in a message format ready for publishing.

@return mixed
Return the event in a message format ready for publishing .