public function addMessage(Message $message)
    {
        $message->setMessageBroker($this);
        $this->messages->attach($message);
    }
public function addMessage(Message $message)
    {
        $message->setMessageBroker($this);
        $this->messages->attach($message);
    }
public function addMessage ( Message $ message ) { $ message -> setMessageBroker ( $ this ) ; $ this -> messages -> attach ( $ message ) ; }
Add a message to the broker.

@param Message $message
@return void
Add a message to the broker .