/** * Get notification type * * @return NotificationType */ public function getNotificationType() { if (null === $this->notificationType) { return NotificationType::fromString(self::DEFAULT_NOTIFICATION_TYPE); } return $this->notificationType; }
/** * Get notification type * * @return NotificationType */ public function getNotificationType() { if (is_null($this->notificationType)) { return NotificationType::fromString(); } return $this->notificationType; }
/** * Get known notification types * * @return NotificationType[] */ protected function getKnownNotificationTypes() { return array(NotificationType::fromString(), NotificationType::fromString('urn:schemas-upnp-org:device:MediaServer:1'), NotificationType::fromString('urn:schemas-upnp-org:service:ContentDirectory:1'), NotificationType::fromString('urn:schemas-upnp-org:service:ConnectionManager:1')); }