src/modules/notification/components/NotificationManager.php
private function getNotifications ($type)
		{
			$data = [];
			/** @var Notification $notification */
			foreach ($this->_data as $notification)
			{
				if ($notification->type == $type)
					$data[] = $notification;
			}

			return $data;
		}
private function getNotifications ($type)
		{
			$data = [];
			/** @var Notification $notification */
			foreach ($this->_data as $notification)
			{
				if ($notification->type == $type)
					$data[] = $notification;
			}

			return $data;
		}
private function getNotifications ( $ type ) { $ data = [ ] ; /** @var Notification $notification */ foreach ( $ this -> _data as $ notification ) { if ( $ notification -> type == $ type ) $ data [ ] = $ notification ; } return $ data ; }
Finds all notifications of given type.

@param int $type
@return array
Finds all notifications of given type .