Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class ComingSoon |
||
14 | { |
||
15 | /** |
||
16 | * @var EngineInterface |
||
17 | */ |
||
18 | private $templateEngine; |
||
19 | |||
20 | /** |
||
21 | * @var boolean |
||
22 | */ |
||
23 | private $enabled; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $template; |
||
29 | |||
30 | /** |
||
31 | * @param EngineInterface $templateEngine |
||
32 | * @param boolean $enabled |
||
33 | * @param string $template |
||
34 | */ |
||
35 | public function __construct( |
||
36 | EngineInterface $templateEngine, |
||
37 | bool $enabled, |
||
38 | string $template |
||
39 | ) { |
||
40 | 1 | $this->templateEngine = $templateEngine; |
|
41 | 1 | $this->enabled = $enabled; |
|
42 | 1 | $this->template = $template; |
|
43 | 1 | } |
|
44 | |||
45 | /** |
||
46 | * @throws NotFoundHttpException |
||
47 | * |
||
48 | * @return Response |
||
49 | */ |
||
50 | public function __invoke() : Response |
||
57 | } |
||
58 | } |
||
59 |