InfoBoxMessage
in package
implements
InfoBoxMessageInterface
Class InfoBoxMessage
Tags
Interfaces, Classes and Traits
- InfoBoxMessageInterface
- Interface InfoBoxMessageInterface
Table of Contents
- $addedDateTime : DateTime
- Added date time.
- $buttonLabels : EditableKeyValueCollection
- Message button labels.
- $buttonLink : string
- Message button link.
- $customerId : int
- Customer ID
- $headlines : EditableKeyValueCollection
- Message headlines
- $id : string
- Message ID
- $identifier : string
- Message identifier
- $messages : EditableKeyValueCollection
- Messages
- $modifiedDateTime : DateTime
- Modified date time.
- $source : string
- Message source
- $status : string
- Message status
- $type : string
- Message type
- $visibility : string
- Message visibility
- __construct() : mixed
- InfoBoxMessage constructor.
- getAddedDateTime() : DateTime
- Returns the message creation date time.
- getButtonLabel() : string
- Returns the message button label.
- getButtonLabelCollection() : EditableKeyValueCollection
- Returns the button label collection.
- getButtonLink() : string
- Returns the link of the message button.
- getCustomerId() : int
- Returns the customer ID of the message.
- getHeadLine() : string
- Returns the message headline.
- getHeadLineCollection() : EditableKeyValueCollection
- Returns the headline collection.
- getId() : int
- Returns the ID of the message.
- getIdentifier() : string
- Returns the message identifier.
- getMessage() : string
- Returns the message.
- getMessageCollection() : EditableKeyValueCollection
- Returns the message collection.
- getModifiedDateTime() : DateTime
- Returns the message modification date time.
- getSource() : string
- Returns the message's source.
- getStatus() : string
- Returns the status of the message.
- getType() : string
- Returns the type of the message.
- getVisibility() : string
- Returns the visibility of the message.
- setAddedDateTime() : InfoBoxMessage
- Sets the message creation date time.
- setButtonLabel() : InfoBoxMessage
- Sets the message button label.
- setButtonLabelCollection() : InfoBoxMessage
- Sets the button labels.
- setButtonLink() : InfoBoxMessage
- Sets the link of the message button.
- setCustomerId() : InfoBoxMessage
- Sets the customer ID of the message.
- setHeadLine() : InfoBoxMessage
- Sets the message headline.
- setHeadLineCollection() : InfoBoxMessage
- Sets the message headlines.
- setId() : InfoBoxMessage
- Sets the ID of the message.
- setIdentifier() : InfoBoxMessage
- Sets the identifier string of the message
- setMessage() : InfoBoxMessage
- Sets the message.
- setMessageCollection() : InfoBoxMessage
- Sets the messages by adding a collection.
- setModifiedDateTime() : InfoBoxMessage
- Sets the message modification date time.
- setSource() : InfoBoxMessage
- Sets the message's source.
- setStatus() : InfoBoxMessage
- Sets the status of the message.
- setType() : InfoBoxMessage
- Sets the type of the message.
- setVisibility() : InfoBoxMessage
- Sets the visibility of the message.
Properties
$addedDateTime
Added date time.
protected
DateTime
$addedDateTime
$buttonLabels
Message button labels.
protected
EditableKeyValueCollection
$buttonLabels
$buttonLink
Message button link.
protected
string
$buttonLink
$customerId
Customer ID
protected
int
$customerId
$headlines
Message headlines
protected
EditableKeyValueCollection
$headlines
$id
Message ID
protected
string
$id
$identifier
Message identifier
protected
string
$identifier
$messages
Messages
protected
EditableKeyValueCollection
$messages
$modifiedDateTime
Modified date time.
protected
DateTime
$modifiedDateTime
$source
Message source
protected
string
$source
$status
Message status
protected
string
$status
$type
Message type
protected
string
$type
$visibility
Message visibility
protected
string
$visibility
Methods
__construct()
InfoBoxMessage constructor.
public
__construct() : mixed
Return values
mixed —getAddedDateTime()
Returns the message creation date time.
public
getAddedDateTime() : DateTime
Return values
DateTime —The added date time.
getButtonLabel()
Returns the message button label.
public
getButtonLabel(LanguageCode $languageCode) : string
Parameters
- $languageCode : LanguageCode
-
Button label language code.
Return values
string —The message button label.
getButtonLabelCollection()
Returns the button label collection.
public
getButtonLabelCollection() : EditableKeyValueCollection
Return values
EditableKeyValueCollection —getButtonLink()
Returns the link of the message button.
public
getButtonLink() : string
Return values
string —Link of the message button.
getCustomerId()
Returns the customer ID of the message.
public
getCustomerId() : int
Return values
int —getHeadLine()
Returns the message headline.
public
getHeadLine(LanguageCode $languageCode) : string
Parameters
- $languageCode : LanguageCode
-
Language code of the message headline.
Return values
string —The message headline.
getHeadLineCollection()
Returns the headline collection.
public
getHeadLineCollection() : EditableKeyValueCollection
Return values
EditableKeyValueCollection —getId()
Returns the ID of the message.
public
getId() : int
Return values
int —ID of the message.
getIdentifier()
Returns the message identifier.
public
getIdentifier() : string
Return values
string —Message identifier.
getMessage()
Returns the message.
public
getMessage(LanguageCode $languageCode) : string
Parameters
- $languageCode : LanguageCode
-
Language code of the message.
Return values
string —The message.
getMessageCollection()
Returns the message collection.
public
getMessageCollection() : EditableKeyValueCollection
Return values
EditableKeyValueCollection —getModifiedDateTime()
Returns the message modification date time.
public
getModifiedDateTime() : DateTime
Return values
DateTime —The modified date time.
getSource()
Returns the message's source.
public
getSource() : string
Return values
string —Source of the message.
getStatus()
Returns the status of the message.
public
getStatus() : string
Return values
string —Status of the message.
getType()
Returns the type of the message.
public
getType() : string
Return values
string —getVisibility()
Returns the visibility of the message.
public
getVisibility() : string
Return values
string —Visibility of the message.
setAddedDateTime()
Sets the message creation date time.
public
setAddedDateTime(DateTime $dateTime) : InfoBoxMessage
Parameters
- $dateTime : DateTime
-
Message added date time value.
Return values
InfoBoxMessage —Same instance for method chaining.
setButtonLabel()
Sets the message button label.
public
setButtonLabel(StringType $text, LanguageCode $languageCode) : InfoBoxMessage
Parameters
- $text : StringType
-
Button label text.
- $languageCode : LanguageCode
-
Button label text language code.
Return values
InfoBoxMessage —Same instance for method chaining.
setButtonLabelCollection()
Sets the button labels.
public
setButtonLabelCollection(KeyValueCollection $buttonLabels) : InfoBoxMessage
Parameters
- $buttonLabels : KeyValueCollection
-
Message button labels.
Return values
InfoBoxMessage —Same instance for method chaining.
setButtonLink()
Sets the link of the message button.
public
setButtonLink(StringType $buttonLink) : InfoBoxMessage
Parameters
- $buttonLink : StringType
-
Link of the message button.
Return values
InfoBoxMessage —Same instance for method chaining.
setCustomerId()
Sets the customer ID of the message.
public
setCustomerId(IdType $customerId) : InfoBoxMessage
Parameters
- $customerId : IdType
-
Customer ID of the message.
Return values
InfoBoxMessage —Same instance for method chaining.
setHeadLine()
Sets the message headline.
public
setHeadLine(StringType $text, LanguageCode $languageCode) : InfoBoxMessage
Parameters
- $text : StringType
-
Message headline.
- $languageCode : LanguageCode
-
Language code for message headline.
Return values
InfoBoxMessage —Same instance for method chaining.
setHeadLineCollection()
Sets the message headlines.
public
setHeadLineCollection(KeyValueCollection $headlines) : InfoBoxMessage
Parameters
- $headlines : KeyValueCollection
-
Message headlines.
Return values
InfoBoxMessage —Same instance for method chaining.
setId()
Sets the ID of the message.
public
setId(IdType $id) : InfoBoxMessage
Parameters
- $id : IdType
-
Identifier of the message.
Return values
InfoBoxMessage —Same instance for method chaining.
setIdentifier()
Sets the identifier string of the message
public
setIdentifier(StringType $identifier) : InfoBoxMessage
Parameters
- $identifier : StringType
-
Message identifier.
Return values
InfoBoxMessage —Same instance for method chaining.
setMessage()
Sets the message.
public
setMessage(StringType $text, LanguageCode $languageCode) : InfoBoxMessage
Parameters
- $text : StringType
-
Message.
- $languageCode : LanguageCode
-
Language code of the message.
Return values
InfoBoxMessage —Same instance for method chaining.
setMessageCollection()
Sets the messages by adding a collection.
public
setMessageCollection(KeyValueCollection $messages) : InfoBoxMessage
Parameters
- $messages : KeyValueCollection
-
Messages.
Return values
InfoBoxMessage —Same instance for method chaining.
setModifiedDateTime()
Sets the message modification date time.
public
setModifiedDateTime(DateTime $dateTime) : InfoBoxMessage
Parameters
- $dateTime : DateTime
-
Message modification date time.
Return values
InfoBoxMessage —Same instance for method chaining.
setSource()
Sets the message's source.
public
setSource(StringType $source) : InfoBoxMessage
Parameters
- $source : StringType
-
Source of the message (e.g. 'internal').
Return values
InfoBoxMessage —Same instance for method chaining.
setStatus()
Sets the status of the message.
public
setStatus(StringType $status) : InfoBoxMessage
Parameters
- $status : StringType
-
Status of the message.
Return values
InfoBoxMessage —Same instance for method chaining.
setType()
Sets the type of the message.
public
setType(StringType $type) : InfoBoxMessage
Parameters
- $type : StringType
-
Type of the message.
Return values
InfoBoxMessage —Same instance for method chaining.
setVisibility()
Sets the visibility of the message.
public
setVisibility(StringType $visibility) : InfoBoxMessage
Parameters
- $visibility : StringType
-
Visibility of the message.
Return values
InfoBoxMessage —Same instance for method chaining.