| 1 | <?php |
||
| 9 | class QueueWorkflow implements WorkflowInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \SplQueue |
||
| 13 | */ |
||
| 14 | protected $queue; |
||
| 15 | /** |
||
| 16 | * @var ResultInterface |
||
| 17 | */ |
||
| 18 | protected $result; |
||
| 19 | /** |
||
| 20 | * @var ConfigInterface |
||
| 21 | */ |
||
| 22 | protected $config; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param ConfigInterface $config |
||
| 26 | * @param ResultInterface $result |
||
| 27 | */ |
||
| 28 | 10 | public function __construct(ConfigInterface $config, ResultInterface $result) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 10 | public function add(ActionInterface $action) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 9 | public function execute() |
|
| 56 | } |
||
| 57 |