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