Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 0 |
1 | <?php |
||
14 | final class ActivateShields implements ActionControllerInterface |
||
15 | { |
||
16 | public const ACTION_IDENTIFIER = 'B_ACTIVATE_SHIELDS'; |
||
17 | |||
18 | private ActivatorDeactivatorHelperInterface $helper; |
||
19 | |||
20 | 1 | public function __construct( |
|
21 | ActivatorDeactivatorHelperInterface $helper |
||
22 | ) { |
||
23 | 1 | $this->helper = $helper; |
|
24 | } |
||
25 | |||
26 | 1 | public function handle(GameControllerInterface $game): void |
|
27 | { |
||
28 | 1 | $game->setView(ShowShip::VIEW_IDENTIFIER); |
|
29 | |||
30 | 1 | $this->helper->activate(request::indInt('id'), ShipSystemTypeEnum::SYSTEM_SHIELDS, $game); |
|
31 | } |
||
32 | |||
33 | public function performSessionCheck(): bool |
||
36 | } |
||
37 | } |
||
38 |