Documentation

NotificationSettings
in package
implements JsonSerializable

Class NotificationSettings

Tags
ORM\Entity

()

ORM\Table

(name="notification_settings")

Table of Contents

Interfaces

JsonSerializable

Constants

NEW_REPORTS_AVAILABLE  = "newReportsAvailable"
NO_DATA_RECEIVED  = "noDataReceived"
NOTIFICATION_SETTINGS  = [self::NEW_REPORTS_AVAILABLE, self::THRESHOLD_ALMOST_REACHED, self::THRESHOLD_IS_REACHED, self::TOO_MANY_UNREAD_NOTIFICATIONS, self::YEARLY_ENTRIES_ADDED, self::NO_DATA_RECEIVED, self::QUALITY_CONTROL_DONE]
QUALITY_CONTROL_DONE  = "qualityControlDone"
THRESHOLD_ALMOST_REACHED  = "thresholdAlmostReached"
THRESHOLD_IS_REACHED  = "thresholdIsReached"
TOO_MANY_UNREAD_NOTIFICATIONS  = "tooManyUnreadNotifications"
YEARLY_ENTRIES_ADDED  = "yearlyEntriesAdded"

Properties

$client  : Client
$id  : int|null
$newReportsAvailable  : bool|null
$noDataReceived  : bool|null
$qualityControlDone  : bool|null
$thresholdAlmostReached  : bool|null
$thresholdIsReached  : bool|null
$tooManyUnreadNotifications  : bool|null
$yearlyEntriesAdded  : bool|null

Methods

getClient()  : Client
getId()  : int|null
getNewReportsAvailable()  : bool|null
getNoDataReceived()  : bool|null
getQualityControlDone()  : bool|null
getThresholdAlmostReached()  : bool|null
getThresholdIsReached()  : bool|null
getTooManyUnreadNotifications()  : bool|null
getYearlyEntriesAdded()  : bool|null
isEnabledFor()  : bool
jsonSerialize()  : mixed
setClient()  : void
setId()  : void
setNewReportsAvailable()  : void
setNoDataReceived()  : void
setQualityControlDone()  : void
setThresholdAlmostReached()  : void
setThresholdIsReached()  : void
setTooManyUnreadNotifications()  : void
setYearlyEntriesAdded()  : void

Constants

NOTIFICATION_SETTINGS

public mixed NOTIFICATION_SETTINGS = [self::NEW_REPORTS_AVAILABLE, self::THRESHOLD_ALMOST_REACHED, self::THRESHOLD_IS_REACHED, self::TOO_MANY_UNREAD_NOTIFICATIONS, self::YEARLY_ENTRIES_ADDED, self::NO_DATA_RECEIVED, self::QUALITY_CONTROL_DONE]

THRESHOLD_ALMOST_REACHED

public mixed THRESHOLD_ALMOST_REACHED = "thresholdAlmostReached"

TOO_MANY_UNREAD_NOTIFICATIONS

public mixed TOO_MANY_UNREAD_NOTIFICATIONS = "tooManyUnreadNotifications"

Properties

$client

private Client $client
Tags
ORM\OneToOne

(targetEntity="Client", inversedBy="notificationSettings")

ORM\JoinColumn

(name="user_id", referencedColumnName="id")

$id

private int|null $id
Tags
ORM\Column

(type="integer")

ORM\Id

()

ORM\GeneratedValue

()

$newReportsAvailable

private bool|null $newReportsAvailable = false
Tags
ORM\Column

(name="new_reports_available", type="boolean")

$noDataReceived

private bool|null $noDataReceived = false
Tags
ORM\Column

(name="no_data_received", type="boolean")

$qualityControlDone

private bool|null $qualityControlDone = false
Tags
ORM\Column

(name="quality_control_done", type="boolean")

$thresholdAlmostReached

private bool|null $thresholdAlmostReached = false
Tags
ORM\Column

(name="threshold_almost_reached", type="boolean")

$thresholdIsReached

private bool|null $thresholdIsReached = false
Tags
ORM\Column

(name="threshold_is_reached", type="boolean")

$tooManyUnreadNotifications

private bool|null $tooManyUnreadNotifications = false
Tags
ORM\Column

(name="too_many_unread_notifications", type="boolean")

$yearlyEntriesAdded

private bool|null $yearlyEntriesAdded = false
Tags
ORM\Column

(name="yearly_entries_added", type="boolean")

Methods

getNewReportsAvailable()

public getNewReportsAvailable() : bool|null
Return values
bool|null

getQualityControlDone()

public getQualityControlDone() : bool|null
Return values
bool|null

getThresholdAlmostReached()

public getThresholdAlmostReached() : bool|null
Return values
bool|null

getThresholdIsReached()

public getThresholdIsReached() : bool|null
Return values
bool|null

getTooManyUnreadNotifications()

public getTooManyUnreadNotifications() : bool|null
Return values
bool|null

getYearlyEntriesAdded()

public getYearlyEntriesAdded() : bool|null
Return values
bool|null

isEnabledFor()

public isEnabledFor(string $notification) : bool
Parameters
$notification : string
Return values
bool

setNewReportsAvailable()

public setNewReportsAvailable(bool|null $newReportsAvailable) : void
Parameters
$newReportsAvailable : bool|null

setNoDataReceived()

public setNoDataReceived(bool|null $noDataReceived) : void
Parameters
$noDataReceived : bool|null

setQualityControlDone()

public setQualityControlDone(bool|null $qualityControlDone) : void
Parameters
$qualityControlDone : bool|null

setThresholdAlmostReached()

public setThresholdAlmostReached(bool|null $thresholdAlmostReached) : void
Parameters
$thresholdAlmostReached : bool|null

setThresholdIsReached()

public setThresholdIsReached(bool|null $thresholdIsReached) : void
Parameters
$thresholdIsReached : bool|null

setTooManyUnreadNotifications()

public setTooManyUnreadNotifications(bool|null $tooManyUnreadNotifications) : void
Parameters
$tooManyUnreadNotifications : bool|null

setYearlyEntriesAdded()

public setYearlyEntriesAdded(bool|null $yearlyEntriesAdded) : void
Parameters
$yearlyEntriesAdded : bool|null

        
On this page

Search results