/** * Get details. * * @return array */ public function getNotificationDetails() { $receiver = $this->getReceiver(); $workspace = $this->badge->getWorkspace() ? $this->badge->getWorkspace()->getId() : null; $notificationDetails = array('workspace' => $workspace, 'badge' => array('id' => $this->badge->getId(), 'name' => $this->badge->getName(), 'slug' => $this->badge->getSlug()), 'receiver' => array('id' => $receiver->getId(), 'publicUrl' => $receiver->getPublicUrl(), 'lastName' => $receiver->getLastName(), 'firstName' => $receiver->getFirstName())); return $notificationDetails; }
/** * @return array */ public function getData() { return array('badge' => $this->badge->getId(), 'name' => $this->badge->getName(), 'img' => $this->badge->getWebPath()); }