| 1 | <?php |
||
| 5 | class InterruptibleProcessor implements ProcessorInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var callable |
||
| 9 | */ |
||
| 10 | private $check; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * InterruptibleProcessor constructor. |
||
| 14 | * |
||
| 15 | * @param callable $check |
||
| 16 | */ |
||
| 17 | 4 | public function __construct(callable $check) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @param array $stages |
||
| 24 | * @param mixed $payload |
||
| 25 | * |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | 2 | public function process(array $stages, $payload) |
|
| 42 | } |
||
| 43 |