FluentDOM\Serializer\Json::__toString PHP Метод

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

public __toString ( ) : string
Результат string
    public function __toString()
    {
        $json = $this->_useDepth ? json_encode($this, $this->_options, $this->_depth) : json_encode($this, $this->_options);
        return $json ? $json : '';
    }