Passed
Push — master ( 5dd599...e8cb6d )
by Nico
62:01 queued 29:56
created

ShowTutorialCloseButton   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 2
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Module\Game\View\ShowTutorialCloseButton;
6
7
use Stu\Module\Control\GameControllerInterface;
8
use Stu\Module\Control\ViewControllerInterface;
9
10
final class ShowTutorialCloseButton implements ViewControllerInterface
11
{
12
    public const VIEW_IDENTIFIER = 'SHOW_TUTORIAL_CLOSE';
13
14
    public function handle(GameControllerInterface $game): void
15
    {
16
        $game->setTemplateFile('html/tutorial/closebutton.twig');
17
    }
18
}
19