File "Printer.php"
Full Path: /home/warrior1/public_html/languages/wp-content-20241001222009/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Query/Printer.php
File size: 567 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare (strict_types=1);
namespace MailPoetVendor\Doctrine\ORM\Query;
if (!defined('ABSPATH')) exit;
use function str_repeat;
class Printer
{
protected $_indent = 0;
protected $_silent;
public function __construct($silent = \false)
{
$this->_silent = $silent;
}
public function startProduction($name)
{
$this->println('(' . $name);
$this->_indent++;
}
public function endProduction()
{
$this->_indent--;
$this->println(')');
}
public function println($str)
{
if (!$this->_silent) {
echo str_repeat(' ', $this->_indent), $str, "\n";
}
}
}