Methods

setApp()

setApp(string  $app) : $this

Parameters

string $app

Throws

\InvalidArgumentException

if the app id are invalid

Returns

$this

getApp()

getApp() : string

Returns

string

setUser()

setUser(string  $user) : $this

Parameters

string $user

Throws

\InvalidArgumentException

if the user id are invalid

Returns

$this

getUser()

getUser() : string

Returns

string

setDateTime()

setDateTime(\DateTime  $dateTime) : $this

Parameters

\DateTime $dateTime

Throws

\InvalidArgumentException

if the $dateTime is invalid

Returns

$this

getDateTime()

getDateTime() : \DateTime

Returns

\DateTime

setObject()

setObject(string  $type, string  $id) : $this

Parameters

string $type
string $id

Throws

\InvalidArgumentException

if the object type or id is invalid

Returns

$this

getObjectType()

getObjectType() : string

Returns

string

getObjectId()

getObjectId() : string

Returns

string

setSubject()

setSubject(string  $subject, array  $parameters = array()) : $this

Parameters

string $subject
array $parameters

Throws

\InvalidArgumentException

if the subject or parameters are invalid

Returns

$this

getSubject()

getSubject() : string

Returns

string

getSubjectParameters()

getSubjectParameters() : array<mixed,string>

Returns

array<mixed,string>

setParsedSubject()

setParsedSubject(string  $subject) : $this

Parameters

string $subject

Throws

\InvalidArgumentException

if the subject are invalid

Returns

$this

getParsedSubject()

getParsedSubject() : string

Returns

string

setMessage()

setMessage(string  $message, array  $parameters = array()) : $this

Parameters

string $message
array $parameters

Throws

\InvalidArgumentException

if the message or parameters are invalid

Returns

$this

getMessage()

getMessage() : string

Returns

string

getMessageParameters()

getMessageParameters() : array<mixed,string>

Returns

array<mixed,string>

setParsedMessage()

setParsedMessage(string  $message) : $this

Parameters

string $message

Throws

\InvalidArgumentException

if the message are invalid

Returns

$this

getParsedMessage()

getParsedMessage() : string

Returns

string

setLink()

setLink(string  $link) : $this

Parameters

string $link

Throws

\InvalidArgumentException

if the link are invalid

Returns

$this

getLink()

getLink() : string

Returns

string

addAction()

addAction(\OCP\Notification\IAction  $action) : $this

Parameters

\OCP\Notification\IAction $action

Throws

\InvalidArgumentException

if the action are invalid

Returns

$this

addParsedAction()

addParsedAction(\OCP\Notification\IAction  $action) : $this

Parameters

\OCP\Notification\IAction $action

Throws

\InvalidArgumentException

if the action are invalid

Returns

$this

getParsedActions()

getParsedActions() : array<mixed,\OCP\Notification\IAction>

Returns

array<mixed,\OCP\Notification\IAction>

isValid()

isValid() : boolean

Returns

boolean

isValidParsed()

isValidParsed() : boolean

Returns

boolean