public function text($text)
    {
        if (mb_strlen($text) > 320) {
            throw CouldNotCreateMessage::textTooLong();
        }

        $this->text = $text;
        $this->hasText = true;

        return $this;
    }
public function text($text)
    {
        if (mb_strlen($text) > 320) {
            throw CouldNotCreateMessage::textTooLong();
        }

        $this->text = $text;
        $this->hasText = true;

        return $this;
    }
public function text ( $ text ) { if ( mb_strlen ( $ text ) > 320 ) { throw CouldNotCreateMessage :: textTooLong ( ) ; } $ this -> text = $ text ; $ this -> hasText = true ; return $ this ; }
Notification text.

@param $text

@throws CouldNotCreateMessage

@return $this
Notification text .