NotificationMarkService
in package
Table of Contents
Properties
- $clientRepository : ClientRepository
- $notificationMarkRepository : INotificationMarkRepository
- $notificationMarks : array<string|int, NotificationMark>|null
Methods
- __construct() : mixed
- NotificationMarkService constructor.
- addNotificationMarkByUserIdAndNotificationKey() : void
- getLastByContainsKey() : string|null
- getNotificationMarks() : array<string|int, NotificationMark>|null
- hasNotificationMarkByUserIdAndNotificationKey() : bool
Properties
$clientRepository
private
ClientRepository
$clientRepository
$notificationMarkRepository
private
INotificationMarkRepository
$notificationMarkRepository
$notificationMarks
private
array<string|int, NotificationMark>|null
$notificationMarks
Methods
__construct()
NotificationMarkService constructor.
public
__construct(INotificationMarkRepository $notificationMarkRepository, ClientRepository $clientRepository) : mixed
Parameters
- $notificationMarkRepository : INotificationMarkRepository
- $clientRepository : ClientRepository
addNotificationMarkByUserIdAndNotificationKey()
public
addNotificationMarkByUserIdAndNotificationKey(int $userId, string $notificationKey[, array<string|int, mixed>|null $optionalParams = null ]) : void
Parameters
- $userId : int
- $notificationKey : string
- $optionalParams : array<string|int, mixed>|null = null
Tags
getLastByContainsKey()
public
getLastByContainsKey(int $clientId, string $notificationKey) : string|null
Parameters
- $clientId : int
- $notificationKey : string
Return values
string|nullgetNotificationMarks()
public
getNotificationMarks() : array<string|int, NotificationMark>|null
Return values
array<string|int, NotificationMark>|nullhasNotificationMarkByUserIdAndNotificationKey()
public
hasNotificationMarkByUserIdAndNotificationKey(int $userId, string $notificationKey) : bool
Parameters
- $userId : int
- $notificationKey : string