krixon/rules

View on GitHub
src/Compiler/SpecificationGenerator.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Krixon\Rules\Compiler;

use Krixon\Rules\Ast\ComparisonNode;
use Krixon\Rules\Exception\CompilerError;
use Krixon\Rules\Specification\Specification;

interface SpecificationGenerator
{
    /**
     * @throws CompilerError
     */
    public function attempt(ComparisonNode $comparison) : ?Specification;
}