/** * Set notification * * @param \stdClass $notification * * @return NotificationUser */ public function setNotification($notification) { $this->notification = $notification; $notification->addUser($this); return $this; }