Result
Class Result
Table of Contents
Methods
- getDateSent() : string
- Get date sent.
- getDescription() : string
- Get description text.
- getEmail() : string
- Get email.
- getEntityId() : string
- Get entity ID.
- getEntityType() : string
- Get entity type.
- getMessage() : string
- Get message text.
- getModuleId() : string
- Get module ID.
- isBelongTo() : bool
- Return true if result is belong to module ID and entity type.
- isBlacklistable() : bool
- Return true if email is blacklistable.
- isError() : bool
- Return true if error.
- isNewest() : bool
- Return true if result is newest than custom date.
- isPermanentError() : bool
- Return true if permanent error.
- sendEvent() : bool
- Send event of receiving result.
- setBlacklistable() : $this
- Set as blacklistable.
- setDateSent() : $this
- Set date sent.
- setDescription() : $this
- Set description text.
- setEmail() : $this
- Set email.
- setEntityId() : $this
- Set entity ID.
- setEntityType() : $this
- Set entity type.
- setError() : $this
- Set as error.
- setMessage() : $this
- Set message text.
- setModuleId() : $this
- Set module ID.
- setPermanentError() : $this
- Set as permanent error.
Methods
getDateSent()
Get date sent.
public
getDateSent() : string
Return values
stringgetDescription()
Get description text.
public
getDescription() : string
Return values
stringgetEmail()
Get email.
public
getEmail() : string
Return values
stringgetEntityId()
Get entity ID.
public
getEntityId() : string
Return values
stringgetEntityType()
Get entity type.
public
getEntityType() : string
Return values
stringgetMessage()
Get message text.
public
getMessage() : string
Return values
stringgetModuleId()
Get module ID.
public
getModuleId() : string
Return values
stringisBelongTo()
Return true if result is belong to module ID and entity type.
public
isBelongTo(string $moduleId[, string $entityType = null ]) : bool
Parameters
- $moduleId : string
-
Module ID.
- $entityType : string = null
-
|null Entity type.
Return values
boolisBlacklistable()
Return true if email is blacklistable.
public
isBlacklistable() : bool
Return values
boolisError()
Return true if error.
public
isError() : bool
Return values
boolisNewest()
Return true if result is newest than custom date.
public
isNewest(DateTime|int $dateSent) : bool
Parameters
- $dateSent : DateTime|int
-
Date sent.
Return values
boolisPermanentError()
Return true if permanent error.
public
isPermanentError() : bool
Return values
boolsendEvent()
Send event of receiving result.
public
sendEvent() : bool
Return values
boolsetBlacklistable()
Set as blacklistable.
public
setBlacklistable(bool $isBlacklistable) : $this
Parameters
- $isBlacklistable : bool
-
Is blacklistable.
Return values
$thissetDateSent()
Set date sent.
public
setDateSent(string $dateSent) : $this
Parameters
- $dateSent : string
-
Date sent.
Return values
$thissetDescription()
Set description text.
public
setDescription(string $description) : $this
Parameters
- $description : string
-
Description.
Return values
$thissetEmail()
Set email.
public
setEmail(string $email) : $this
Parameters
- $email : string
-
Email.
Return values
$thissetEntityId()
Set entity ID.
public
setEntityId(string $entityId) : $this
Parameters
- $entityId : string
-
Entity ID.
Return values
$thissetEntityType()
Set entity type.
public
setEntityType(string $entityType) : $this
Parameters
- $entityType : string
-
Entity type.
Return values
$thissetError()
Set as error.
public
setError(bool $isError) : $this
Parameters
- $isError : bool
-
Is error.
Return values
$thissetMessage()
Set message text.
public
setMessage(string $message) : $this
Parameters
- $message : string
-
Message.
Return values
$thissetModuleId()
Set module ID.
public
setModuleId(string $moduleId) : $this
Parameters
- $moduleId : string
-
Module ID.
Return values
$thissetPermanentError()
Set as permanent error.
public
setPermanentError(bool $isPermanentError) : $this
Parameters
- $isPermanentError : bool
-
Is permanent error.