Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
ManagementDeleteOldDataLogic | |
0.00% |
0 / 6 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
validateImpl | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
executeImpl | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Models\Domain\Page\Management; |
6 | |
7 | use PeServer\App\Models\AppDatabaseCache; |
8 | use PeServer\App\Models\Domain\AppEraser; |
9 | use PeServer\App\Models\Domain\Page\PageLogicBase; |
10 | use PeServer\Core\Mvc\LogicCallMode; |
11 | use PeServer\Core\Mvc\LogicParameter; |
12 | use PeServer\Core\Stopwatch; |
13 | |
14 | class ManagementDeleteOldDataLogic extends PageLogicBase |
15 | { |
16 | public function __construct(LogicParameter $parameter, private AppEraser $appEraser) |
17 | { |
18 | parent::__construct($parameter); |
19 | } |
20 | |
21 | protected function validateImpl(LogicCallMode $callMode): void |
22 | { |
23 | //NOP |
24 | } |
25 | |
26 | protected function executeImpl(LogicCallMode $callMode): void |
27 | { |
28 | $stopwatch = Stopwatch::startNew(); |
29 | |
30 | $this->appEraser->execute(); |
31 | |
32 | $stopwatch->stop(); |
33 | |
34 | $this->addTemporaryMessage('不要データ削除: ' . $stopwatch->toString()); |
35 | } |
36 | } |