public function toString(bool $full = false)
    {
        if (count($this->message) == 0) {
            return null;
        }

        if ($full) {
            return implode(PHP_EOL, $this->message);
        } else {
            return $this->message[0];
        }
    }
public function toString(bool $full = false)
    {
        if (count($this->message) == 0) {
            return null;
        }

        if ($full) {
            return implode(PHP_EOL, $this->message);
        } else {
            return $this->message[0];
        }
    }
public function toString ( bool $ full = false ) { if ( count ( $ this -> message ) == 0 ) { return null ; } if ( $ full ) { return implode ( PHP_EOL , $ this -> message ) ; } else { return $ this -> message [ 0 ] ; } }
Return message string

@param bool $full get the full message

@return string|null
Return message string