Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 84.62% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class OneToOneTransition implements StateTransition |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $name; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $from; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $to; |
||
24 | |||
25 | 48 | public function __construct(string $name, string $from, string $to) |
|
26 | { |
||
27 | 48 | $this->name = $name; |
|
28 | 48 | $this->from = $from; |
|
29 | 48 | $this->to = $to; |
|
30 | 48 | } |
|
31 | |||
32 | 47 | public function getName(): string |
|
33 | { |
||
34 | 47 | return $this->name; |
|
35 | } |
||
36 | |||
37 | 47 | public function onRegister(RegistryBuilder $registry): void |
|
41 | 47 | } |
|
42 | |||
43 | public function getDestinationState(): string |
||
46 | } |
||
47 | } |
||
48 |