| 1 | <?php |
||
| 13 | abstract class AbstractActionInspector implements ActionInspectorInterface |
||
| 14 | { |
||
| 15 | protected $statesFlow = [ |
||
| 16 | ActionInterface::STATE_INITIAL => [ActionInterface::STATE_IN_PROGRESS, ActionInterface::STATE_FINISHED], |
||
| 17 | ActionInterface::STATE_IN_PROGRESS => [ActionInterface::STATE_FINISHED], |
||
| 18 | ActionInterface::STATE_FINISHED => [], |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param ActionInterface $action |
||
| 23 | * @param $prevState |
||
| 24 | * @return boolean |
||
| 25 | */ |
||
| 26 | 1 | protected function isStateAllowed(ActionInterface $action, $prevState) |
|
| 30 | } |