Fenos\Notifynder\Notifications\NotificationManager::getAll PHP Method

getAll() public method

Get All notifications.
public getAll ( $toId, $limit = null, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed
$toId
$limit
$paginate integer | null
$orderDate string
$filterScope Closur\Closure
return mixed
    public function getAll($toId, $limit = null, $paginate = null, $orderDate = 'desc', Closure $filterScope = null)
    {
        $queryLimit = $limit;
        if ($this->isPaginated($paginate)) {
            $queryLimit = null;
        }
        $notifications = $this->notifynderRepo->getAll($toId, $this->entity, $queryLimit, null, $orderDate, $filterScope);
        return $this->getPaginatedIfNeeded($notifications, $limit, $paginate);
    }