PHP Class rcrowe\Hippy\Message

Inheritance: implements rcrowe\Hippy\Message\SenderInterface, implements rcrowe\Hippy\Message\MessageInterface
Datei anzeigen Open project: rcrowe/hippy Class Usage Examples

Protected Properties

Property Type Description
$background_color Background color of the message. Default green.
$message Actual message.
$message_format Is the message plain text or html.
$notification Does this message generate a notification. Default false.

Public Methods

Method Description
__construct ( $notify = false, $background_color = self::BACKGROUND_YELLOW )
getBackgroundColor ( )
getMessage ( )
getMessageFormat ( )
getNotification ( )
removeNotification ( )
setBackgroundColor ( $color )
setHtml ( $html )
setNotification ( )
setText ( $text )

Protected Methods

Method Description
setMessage ( string $text, $format ) : void

Method Details

__construct() public method

public __construct ( $notify = false, $background_color = self::BACKGROUND_YELLOW )

getBackgroundColor() public method

public getBackgroundColor ( )

getMessage() public method

public getMessage ( )

getMessageFormat() public method

public getMessageFormat ( )

getNotification() public method

public getNotification ( )

removeNotification() public method

public removeNotification ( )

setBackgroundColor() public method

public setBackgroundColor ( $color )

setHtml() public method

public setHtml ( $html )

setMessage() protected method

protected setMessage ( string $text, $format ) : void
$text string
return void

setNotification() public method

public setNotification ( )

setText() public method

public setText ( $text )

Property Details

$background_color protected_oe property

Background color of the message. Default green.
protected $background_color

$message protected_oe property

Actual message.
protected $message

$message_format protected_oe property

Is the message plain text or html.
protected $message_format

$notification protected_oe property

Does this message generate a notification. Default false.
protected $notification