@@ -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 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | private $name; |
23 | 23 | |
24 | - /** |
|
24 | + /** |
|
25 | 25 | * Instances of states created by the FlyweightState factory method |
26 | 26 | * |
27 | 27 | * @var State[] |
@@ -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 |
@@ -20,6 +20,7 @@ |
||
20 | 20 | * Constructor |
21 | 21 | * |
22 | 22 | * @param \Noodle\Transition\Transition[] ...$transitions |
23 | + * @param Transition $transitions |
|
23 | 24 | */ |
24 | 25 | public function __construct(Transition ...$transitions) |
25 | 26 | { |