thomas-kl1/php-combine-conditions

View on GitHub
src/Formatter/FormatterInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);
/**
 * Copyright © Thomas Klein, All rights reserved.
 * See LICENSE bundled with this library for license details.
 */

namespace LogicTree\Formatter;

use LogicTree\DataSource;
use LogicTree\Node\CombineInterface;
use LogicTree\Node\ConditionInterface;

/**
 * @api
 */
interface FormatterInterface
{
    public function format(CombineInterface|ConditionInterface $node, DataSource $dataSource): string;

    public function register(string $operator, ConverterInterface $converter): void;
}