yvoyer /
php-state
| 1 | <?php declare(strict_types=1); |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 2 | /** |
||
|
0 ignored issues
–
show
|
|||
| 3 | * This file is part of the php-state project. |
||
| 4 | * |
||
| 5 | * (c) Yannick Voyer <[email protected]> (http://github.com/yvoyer) |
||
| 6 | */ |
||
|
0 ignored issues
–
show
|
|||
| 7 | |||
| 8 | namespace Star\Component\State\Event; |
||
| 9 | |||
| 10 | use Symfony\Contracts\EventDispatcher\Event; |
||
| 11 | |||
| 12 | final class TransitionWasRequested extends Event implements StateEvent |
||
|
0 ignored issues
–
show
|
|||
| 13 | { |
||
|
0 ignored issues
–
show
|
|||
| 14 | /** |
||
|
0 ignored issues
–
show
|
|||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $transition; |
||
|
0 ignored issues
–
show
|
|||
| 18 | |||
| 19 | 30 | public function __construct(string $transition) |
|
|
0 ignored issues
–
show
|
|||
| 20 | { |
||
|
0 ignored issues
–
show
|
|||
| 21 | 30 | $this->transition = $transition; |
|
| 22 | 30 | } |
|
|
0 ignored issues
–
show
|
|||
| 23 | |||
| 24 | public function transition(): string |
||
|
0 ignored issues
–
show
|
|||
| 25 | { |
||
|
0 ignored issues
–
show
|
|||
| 26 | return $this->transition; |
||
| 27 | } |
||
|
0 ignored issues
–
show
|
|||
| 28 | } |
||
|
0 ignored issues
–
show
|
|||
| 29 |