| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class ReadOnlyTransition implements StateTransition |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $destination; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $destination |
||
| 18 | */ |
||
| 19 | 30 | public function __construct($destination) |
|
| 20 | { |
||
| 21 | 30 | Assert::string($destination); |
|
| 22 | 30 | $this->destination = $destination; |
|
| 23 | 30 | } |
|
| 24 | |||
| 25 | public function getName() |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param RegistryBuilder $registry |
||
| 32 | */ |
||
| 33 | public function onRegister(RegistryBuilder $registry) |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 29 | public function getDestinationState() |
|
| 46 |