for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Humbug\PhpScoper\PhpParser\Printer;
use PhpParser\PrettyPrinterAbstract;
final class StandardPrinter implements Printer
{
private PrettyPrinterAbstract $decoratedPrinter;
public function __construct(
PrettyPrinterAbstract $decoratedPrinter
) {
$this->decoratedPrinter = $decoratedPrinter;
}
public function print(array $statements): string
return $this->decoratedPrinter->prettyPrintFile($statements)."\n";