@@ -4,7 +4,6 @@ |
||
4 | 4 | use izzum\statemachine\StateMachine; |
5 | 5 | use izzum\statemachine\Identifier; |
6 | 6 | use izzum\statemachine\loader\LoaderArray; |
7 | -use izzum\statemachine\loader\LoaderData; |
|
8 | 7 | use izzum\statemachine\Exception; |
9 | 8 | use izzum\statemachine\Transition; |
10 | 9 | use izzum\statemachine\State; |
@@ -261,6 +261,9 @@ |
||
261 | 261 | $this->cache = null; |
262 | 262 | } |
263 | 263 | |
264 | + /** |
|
265 | + * @param boolean $result |
|
266 | + */ |
|
264 | 267 | private function setCache($result) |
265 | 268 | { |
266 | 269 | if ($this->getCacheEnabled()) { |
@@ -337,7 +337,7 @@ |
||
337 | 337 | * run from ('state from'). |
338 | 338 | * |
339 | 339 | * @param Transition $transition |
340 | - * @return boolan yes in case the transition was not on the State already or in case of an invalid transition |
|
340 | + * @return boolean yes in case the transition was not on the State already or in case of an invalid transition |
|
341 | 341 | */ |
342 | 342 | public function addTransition(Transition $transition) |
343 | 343 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | use izzum\command\ICommand; |
4 | 4 | use izzum\command\NullCommand; |
5 | 5 | use izzum\statemachine\Exception; |
6 | -use izzum\command\Composite; |
|
7 | 6 | use izzum\statemachine\utils\Utils; |
8 | 7 | |
9 | 8 | /** |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | * method will return a Composite command. |
298 | 298 | * |
299 | 299 | * @param Context $context |
300 | - * @return izzum\command\ICommand |
|
300 | + * @return \izzum\command\ICommand |
|
301 | 301 | * @throws Exception |
302 | 302 | */ |
303 | 303 | public function getCommand(Context $context) |
@@ -361,6 +361,9 @@ discard block |
||
361 | 361 | return $this->command; |
362 | 362 | } |
363 | 363 | |
364 | + /** |
|
365 | + * @param string $command |
|
366 | + */ |
|
364 | 367 | public function setCommandName($command) |
365 | 368 | { |
366 | 369 | $this->command = trim($command); |
@@ -372,6 +375,9 @@ discard block |
||
372 | 375 | return $this->rule; |
373 | 376 | } |
374 | 377 | |
378 | + /** |
|
379 | + * @param string $rule |
|
380 | + */ |
|
375 | 381 | public function setRuleName($rule) |
376 | 382 | { |
377 | 383 | $this->rule = trim($rule); |