PHP Class Namshi\Notificator\Notification

Inheritance: implements Namshi\Notificator\NotificationInterface
Show file Open project: namshi/notificator Class Usage Examples

Protected Properties

Property Type Description
$message
$parameters

Public Methods

Method Description
__construct ( $message, array $parameters = [] ) Constructor
getMessage ( )
getParameter ( string $id ) : mixed Returns a parameter.
getParameters ( )
setMessage ( string $message ) Sets the message transported by this notification.

Method Details

__construct() public method

Constructor
public __construct ( $message, array $parameters = [] )
$message
$parameters array

getMessage() public method

public getMessage ( )

getParameter() public method

Returns a parameter.
public getParameter ( string $id ) : mixed
$id string
return mixed

getParameters() public method

public getParameters ( )

setMessage() public method

Sets the message transported by this notification.
public setMessage ( string $message )
$message string

Property Details

$message protected property

protected $message

$parameters protected property

protected $parameters