Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
HomeContactLogic | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
validateImpl | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
executeImpl | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Models\Domain\Page\Home; |
6 | |
7 | use PeServer\Core\Mvc\LogicCallMode; |
8 | use PeServer\Core\Mvc\LogicParameter; |
9 | use PeServer\App\Models\AppConfiguration; |
10 | use PeServer\App\Models\Domain\Page\PageLogicBase; |
11 | |
12 | class HomeContactLogic extends PageLogicBase |
13 | { |
14 | public function __construct(LogicParameter $parameter, private AppConfiguration $config) |
15 | { |
16 | parent::__construct($parameter); |
17 | } |
18 | |
19 | protected function validateImpl(LogicCallMode $callMode): void |
20 | { |
21 | //NOP |
22 | } |
23 | |
24 | protected function executeImpl(LogicCallMode $callMode): void |
25 | { |
26 | $families = $this->config->setting->config->address->families; |
27 | $this->setValue('families', $families); |
28 | } |
29 | } |