/** * Creates the sidebar object for given user. * * @param MessageSidebarObject $user */ public function create(MessageSidebarObject $object) { if (!isset($this->messageSidebars[$object->getMessageType() . '-' . $object->getMessageID()])) { // create sidebar $sidebar = new MessageSidebar($object); $this->messageSidebars[$object->getMessageType() . '-' . $object->getMessageID()] = $sidebar; } }
/** * Returns the message id. * * @return integer */ public function getMessageID() { return $this->object->getMessageID(); }