public function getMessagingService()
    {
        if (is_null($this->messagingSerivce)) {
            $this->messagingSerivce = MessagingService::singleton(); 
        }
        return $this->messagingSerivce;
    }
public function getMessagingService()
    {
        if (is_null($this->messagingSerivce)) {
            $this->messagingSerivce = MessagingService::singleton(); 
        }
        return $this->messagingSerivce;
    }
public function getMessagingService ( ) { if ( is_null ( $ this -> messagingSerivce ) ) { $ this -> messagingSerivce = MessagingService :: singleton ( ) ; } return $ this -> messagingSerivce ; }
Get messaging service

@return MessagingService
Get messaging service