Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 672 Bytes

evaluator.md

File metadata and controls

32 lines (22 loc) · 672 Bytes

Evaluator

The Evaluator delegates evaluating the input value to it's inner collection of adapters.

Each registered adapter will be triggered and may modify the input value.

Usage

<?php

use Presta\BehatEvaluator\Adapter\AdapterInterface;
use Presta\BehatEvaluator\Evaluator;

/** @var list<AdapterInterface> $adapters */
$adapters = [
    // ...
];

$evaluate = new Evaluator($adapters);
$value = $evaluate('any value');

You may return to the README or read the behat, the evaluator builder or the adapters guides.