Notification
Class Notification
Table of Contents
Methods
- addTo() : $this
- Add to.
- canUse() : bool|null
- Can use.
- create() : static
- Create.
- send() : void
- Send.
- setTo() : $this
- Set to.
- toAllAuthors() : $this
- Add all authors.
- toCurrentUser() : $this
- Add current user.
- withMessage() : $this
- With message.
Methods
addTo()
Add to.
public
addTo(int $userId) : $this
Parameters
- $userId : int
-
User ID.
Return values
$thiscanUse()
Can use.
public
static canUse() : bool|null
Return values
bool|nullcreate()
Create.
public
static create() : static
Return values
staticsend()
Send.
public
send() : void
setTo()
Set to.
public
setTo(array<string|int, int> $list) : $this
Parameters
- $list : array<string|int, int>
-
List.
Return values
$thistoAllAuthors()
Add all authors.
public
toAllAuthors() : $this
Return values
$thistoCurrentUser()
Add current user.
public
toCurrentUser() : $this
Return values
$thiswithMessage()
With message.
public
withMessage(string $message) : $this
Parameters
- $message : string
-
Text.