Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class CallableQualifier extends QualifierAbstract |
||
19 | { |
||
20 | /** |
||
21 | * @var callable |
||
22 | */ |
||
23 | protected $qualifier; |
||
24 | |||
25 | /** |
||
26 | * Instantiate a CallableQualifier Node |
||
27 | * |
||
28 | * @param callable $qualifier |
||
29 | * |
||
30 | * @throws NodalFlowException |
||
31 | */ |
||
32 | public function __construct(callable $qualifier) |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Qualifies a record to either keep it, skip it or break the flow at the execution point |
||
40 | * or at any upstream Node |
||
41 | * |
||
42 | * @param mixed $param |
||
43 | * |
||
44 | * @return InterrupterInterface|bool|null `true` to accept the record, eg let the Flow proceed untouched |
||
45 | * `false|null|void` to deny the record, eg trigger a continue on the carrier Flow (not ancestors) |
||
46 | * `InterrupterInterface` to trigger an interrupt with a target (which may be one ancestor) |
||
47 | */ |
||
48 | public function qualify($param) |
||
53 |