public function writeFormatted(QueryInterface $query)
    {
        if (null === $this->sqlFormatter) {
            $this->sqlFormatter = (new \ReflectionClass($this->sqlFormatterClass))->newInstance();
        }

        return $this->sqlFormatter->format($this->write($query));
    }
public function writeFormatted(QueryInterface $query)
    {
        if (null === $this->sqlFormatter) {
            $this->sqlFormatter = (new \ReflectionClass($this->sqlFormatterClass))->newInstance();
        }

        return $this->sqlFormatter->format($this->write($query));
    }
public function writeFormatted ( QueryInterface $ query ) { if ( null === $ this -> sqlFormatter ) { $ this -> sqlFormatter = ( new \ ReflectionClass ( $ this -> sqlFormatterClass ) ) -> newInstance ( ) ; } return $ this -> sqlFormatter -> format ( $ this -> write ( $ query ) ) ; }
Returns a SQL string in a readable human-friendly format.

@param QueryInterface $query

@return string
Returns a SQL string in a readable human - friendly format .