. * */ namespace Friendica\Navigation\Notifications\Collection; use Friendica\BaseCollection; use Friendica\Navigation\Notifications\Entity; class Notifications extends BaseCollection { /** * @return Entity\Notification */ public function current(): Entity\Notification { return parent::current(); } public function setSeen(): Notifications { return $this->map(function (Entity\Notification $Notification) { $Notification->setSeen(); }); } public function setDismissed(): Notifications { return $this->map(function (Entity\Notification $Notification) { $Notification->setDismissed(); }); } }