PHP 클래스 rcrowe\Hippy\Message

상속: implements rcrowe\Hippy\Message\SenderInterface, implements rcrowe\Hippy\Message\MessageInterface
파일 보기 프로젝트 열기: rcrowe/hippy 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
__construct ( $notify = false, $background_color = self::BACKGROUND_YELLOW )
getBackgroundColor ( )
getMessage ( )
getMessageFormat ( )
getNotification ( )
removeNotification ( )
setBackgroundColor ( $color )
setHtml ( $html )
setNotification ( )
setText ( $text )

보호된 메소드들

메소드 설명
setMessage ( string $text, $format ) : void

메소드 상세

__construct() 공개 메소드

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

getBackgroundColor() 공개 메소드

public getBackgroundColor ( )

getMessage() 공개 메소드

public getMessage ( )

getMessageFormat() 공개 메소드

public getMessageFormat ( )

getNotification() 공개 메소드

public getNotification ( )

removeNotification() 공개 메소드

public removeNotification ( )

setBackgroundColor() 공개 메소드

public setBackgroundColor ( $color )

setHtml() 공개 메소드

public setHtml ( $html )

setMessage() 보호된 메소드

protected setMessage ( string $text, $format ) : void
$text string
리턴 void

setNotification() 공개 메소드

public setNotification ( )

setText() 공개 메소드

public setText ( $text )

프로퍼티 상세

$background_color 보호되어 있는 프로퍼티

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

$message 보호되어 있는 프로퍼티

Actual message.
protected $message

$message_format 보호되어 있는 프로퍼티

Is the message plain text or html.
protected $message_format

$notification 보호되어 있는 프로퍼티

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