NotificationSettings
in package
implements
JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Properties
- $email : string
- $id : int
- $newReportsAvailable : bool
- $noDataReceived : bool
- $qualityControlDone : bool
- $thresholdAlmostReached : bool
- $thresholdIsReached : bool
- $tooManyUnreadNotifications : bool
- $userId : int
- $yearlyEntriesAdded : bool
Methods
- fromEntity() : self
- fromRequest() : void
- getEmail() : string
- Get the value of User Email
- getId() : int|null
- Get the value of Id
- getNewReportsAvailable() : bool
- Get the value of New Reports Available
- getNoDataReceived() : bool
- getQualityControlDone() : bool
- getThresholdAlmostReached() : bool
- Get the value of Threshold Almost Reached
- getThresholdIsReached() : bool
- Get the value of Threshold Is Reached
- getTooManyUnreadNotifications() : bool
- Get the value of Too Many Unread Notifications
- getUserId() : int
- Get the value of User Id
- getYearlyEntriesAdded() : bool
- jsonSerialize() : mixed
- setEmail() : self
- Set the value of User Email
- setId() : self
- Set the value of Id
- setNewReportsAvailable() : self
- Set the value of New Reports Available
- setNoDataReceived() : self
- setQualityControlDone() : self
- setThresholdAlmostReached() : self
- Set the value of Threshold Almost Reached
- setThresholdIsReached() : self
- Set the value of Threshold Is Reached
- setTooManyUnreadNotifications() : self
- Set the value of Too Many Unread Notifications
- setUserId() : self
- Set the value of User Id
- setYearlyEntriesAdded() : self
- toEntity() : NotificationSettings
- toValidatorArray() : array<string|int, mixed>
Properties
private
string
$email
$id
private
int
$id
$newReportsAvailable
private
bool
$newReportsAvailable
= true
$noDataReceived
private
bool
$noDataReceived
$qualityControlDone
private
bool
$qualityControlDone
$thresholdAlmostReached
private
bool
$thresholdAlmostReached
= true
$thresholdIsReached
private
bool
$thresholdIsReached
= true
$tooManyUnreadNotifications
private
bool
$tooManyUnreadNotifications
= true
$userId
private
int
$userId
$yearlyEntriesAdded
private
bool
$yearlyEntriesAdded
Methods
fromEntity()
public
fromEntity(NotificationSettings $notificationSettings) : self
Parameters
- $notificationSettings : NotificationSettings
Return values
selffromRequest()
public
fromRequest(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
getEmail()
Get the value of User Email
public
getEmail() : string
Return values
stringgetId()
Get the value of Id
public
getId() : int|null
Return values
int|nullgetNewReportsAvailable()
Get the value of New Reports Available
public
getNewReportsAvailable() : bool
Return values
boolgetNoDataReceived()
public
getNoDataReceived() : bool
Return values
boolgetQualityControlDone()
public
getQualityControlDone() : bool
Return values
boolgetThresholdAlmostReached()
Get the value of Threshold Almost Reached
public
getThresholdAlmostReached() : bool
Return values
boolgetThresholdIsReached()
Get the value of Threshold Is Reached
public
getThresholdIsReached() : bool
Return values
boolgetTooManyUnreadNotifications()
Get the value of Too Many Unread Notifications
public
getTooManyUnreadNotifications() : bool
Return values
boolgetUserId()
Get the value of User Id
public
getUserId() : int
Return values
intgetYearlyEntriesAdded()
public
getYearlyEntriesAdded() : bool
Return values
booljsonSerialize()
public
jsonSerialize() : mixed
setEmail()
Set the value of User Email
public
setEmail(string $email) : self
Parameters
- $email : string
Return values
selfsetId()
Set the value of Id
public
setId(null|int $id) : self
Parameters
- $id : null|int
Return values
selfsetNewReportsAvailable()
Set the value of New Reports Available
public
setNewReportsAvailable(bool $newReportsAvailable) : self
Parameters
- $newReportsAvailable : bool
Return values
selfsetNoDataReceived()
public
setNoDataReceived(bool $noDataReceived) : self
Parameters
- $noDataReceived : bool
Return values
selfsetQualityControlDone()
public
setQualityControlDone(bool $qualityControlDone) : self
Parameters
- $qualityControlDone : bool
Return values
selfsetThresholdAlmostReached()
Set the value of Threshold Almost Reached
public
setThresholdAlmostReached(bool $thresholdAlmostReached) : self
Parameters
- $thresholdAlmostReached : bool
Return values
selfsetThresholdIsReached()
Set the value of Threshold Is Reached
public
setThresholdIsReached(bool $thresholdIsReached) : self
Parameters
- $thresholdIsReached : bool
Return values
selfsetTooManyUnreadNotifications()
Set the value of Too Many Unread Notifications
public
setTooManyUnreadNotifications(bool $tooManyUnreadNotifications) : self
Parameters
- $tooManyUnreadNotifications : bool
Return values
selfsetUserId()
Set the value of User Id
public
setUserId(int $userId) : self
Parameters
- $userId : int
Return values
selfsetYearlyEntriesAdded()
public
setYearlyEntriesAdded(bool $yearlyEntriesAdded) : self
Parameters
- $yearlyEntriesAdded : bool
Return values
selftoEntity()
public
toEntity(NotificationSettings $notificationSettings) : NotificationSettings
Parameters
- $notificationSettings : NotificationSettings
Return values
NotificationSettingstoValidatorArray()
public
toValidatorArray() : array<string|int, mixed>