| 1 | <?php |
||
| 7 | class FileEvaluator implements Evaluator |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $directory; |
||
| 11 | |||
| 12 | /** @var Filesystem */ |
||
| 13 | private $fs; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $directory The directory in which the compiled executors are stored. Defaults to the system's temp directory. |
||
| 17 | */ |
||
| 18 | public function __construct($directory = null, Filesystem $fs = null) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function evaluate(string $ruleIdentifier, callable $compiler): void |
||
| 37 | } |
||
| 38 |