@@ -4,12 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface CreatesWithName |
| 6 | 6 | { |
| 7 | - /** |
|
| 8 | - * Creates and returns a state with the given name |
|
| 9 | - * |
|
| 10 | - * @param string $name |
|
| 11 | - * |
|
| 12 | - * @return State |
|
| 13 | - */ |
|
| 7 | + /** |
|
| 8 | + * Creates and returns a state with the given name |
|
| 9 | + * |
|
| 10 | + * @param string $name |
|
| 11 | + * |
|
| 12 | + * @return State |
|
| 13 | + */ |
|
| 14 | 14 | public static function named(string $name) : State; |
| 15 | 15 | } |
@@ -7,14 +7,14 @@ |
||
| 7 | 7 | |
| 8 | 8 | interface TransitionTable |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * Returns the state that would result from applying the provided input |
|
| 12 | - * to an object with the provided current state. |
|
| 13 | - * |
|
| 14 | - * @param State $currentState |
|
| 15 | - * @param Input $input |
|
| 16 | - * |
|
| 17 | - * @return State |
|
| 18 | - */ |
|
| 10 | + /** |
|
| 11 | + * Returns the state that would result from applying the provided input |
|
| 12 | + * to an object with the provided current state. |
|
| 13 | + * |
|
| 14 | + * @param State $currentState |
|
| 15 | + * @param Input $input |
|
| 16 | + * |
|
| 17 | + * @return State |
|
| 18 | + */ |
|
| 19 | 19 | public function resolve(State $currentState, Input $input) : State; |
| 20 | 20 | } |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | namespace Noodle\Statemachine\Exception; |
| 6 | 6 | |
| 7 | 7 | use Noodle\State\State; |
| 8 | -use Noodle\Statemachine\Exception; |
|
| 9 | 8 | use Noodle\Stateful\Stateful; |
| 9 | +use Noodle\Statemachine\Exception; |
|
| 10 | 10 | use Noodle\Transition\Context; |
| 11 | 11 | use Noodle\Transition\Input\Input; |
| 12 | 12 | |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use Noodle\State\FlyweightState; |
| 13 | 13 | use Noodle\State\State; |
| 14 | 14 | use Noodle\Stateful\Stateful; |
| 15 | -use Noodle\Statemachine\Exception as NoodleException; |
|
| 16 | 15 | use Noodle\Statemachine\Exception\StateTransitionFailed; |
| 17 | 16 | use Noodle\Transition\Input\FlyweightInput; |
| 18 | 17 | use Noodle\Transition\Input\Input; |