rcrowe\Hippy\Message::setMessage PHP Method

setMessage() protected method

protected setMessage ( string $text, $format ) : void
$text string
return void
    protected function setMessage($text, $format)
    {
        if (strlen($text) > 10000) {
            throw new InvalidArgumentException('Message more than 10,000 characters');
        }
        // throw exception if longer than 10,000 chars
        $this->message = $text;
        $this->message_format = $format;
    }