GrumPHP\Parser\ParseError::__toString PHP Метод

__toString() публичный Метод

public __toString ( ) : string
Результат string
    public function __toString()
    {
        if ($this->getLine() < 0) {
            return sprintf('[%s] %s: %s', strtoupper($this->getType()), $this->getFile(), $this->getError());
        }
        return sprintf('[%s] %s: %s on line %d', strtoupper($this->getType()), $this->getFile(), $this->getError(), $this->getLine());
    }