public function setMaxLineLength(int $maxLineLength): Message
    {
        // Each line of characters MUST be no more than 998 characters,
        // and SHOULD be no more than 78 characters, excluding the CRLF.
        // https://tools.ietf.org/html/rfc5322#section-2.1.1
        $maxLineLength = (int) abs($maxLineLength);

        if ($maxLineLength > 998) {
            $maxLineLength = 998;
        }

        $this->maxLineLength = $maxLineLength;

        return $this;
    }
public function setMaxLineLength(int $maxLineLength): Message
    {
        // Each line of characters MUST be no more than 998 characters,
        // and SHOULD be no more than 78 characters, excluding the CRLF.
        // https://tools.ietf.org/html/rfc5322#section-2.1.1
        $maxLineLength = (int) abs($maxLineLength);

        if ($maxLineLength > 998) {
            $maxLineLength = 998;
        }

        $this->maxLineLength = $maxLineLength;

        return $this;
    }
public function setMaxLineLength ( int $ maxLineLength ) : Message { // Each line of characters MUST be no more than 998 characters, // and SHOULD be no more than 78 characters, excluding the CRLF. // https://tools.ietf.org/html/rfc5322#section-2.1.1 $ maxLineLength = ( int ) abs ( $ maxLineLength ) ; if ( $ maxLineLength > 998 ) { $ maxLineLength = 998 ; } $ this -> maxLineLength = $ maxLineLength ; return $ this ; }
Sets the max line length

Max line length should be a positive integer less than 998.

@param int $maxLineLength The max line length

@return Message
Sets the max line length