phplrt/phplrt

View on GitHub
libs/compiler/src/Printer/PrinterInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Phplrt\Compiler\Printer;

interface PrinterInterface
{
    /**
     * Converts given payload to string representation.
     */
    public function print(mixed $data, bool $multiline = true): string;

    /**
     * Returns printer style definition.
     */
    public function getStyle(): Style;
}