public __construct ( string $message ) | ||
$message | string | The notification message. |
public function __construct($message)
{
if (empty($message)) {
throw new \Exception('No notification message given');
}
$this->message = $message;
}