Fenos\Notifynder\Contracts\NotificationDB::getLastNotification PHP Method

getLastNotification() public method

Get last notification of the current entity.
public getLastNotification ( $toId, $entity, Closur\Closure $filterScope = null ) : mixed
$toId
$entity
$filterScope Closur\Closure
return mixed
    public function getLastNotification($toId, $entity, Closure $filterScope = null);

Usage Example

 /**
  * Get last notification of the
  * given entity
  *
  * @param         $to_id
  * @param Closure $filterScope
  * @return mixed
  */
 public function getLastNotification($to_id, Closure $filterScope = null)
 {
     return $this->notifynderRepo->getLastNotification($to_id, $this->entity, $filterScope);
 }
All Usage Examples Of Fenos\Notifynder\Contracts\NotificationDB::getLastNotification