Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
66.67% |
2 / 3 |
|
66.67% |
2 / 3 |
CRAP | |
0.00% |
0 / 1 |
DumpModifier | |
66.67% |
2 / 3 |
|
66.67% |
2 / 3 |
3.33 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getModifierName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
modifierBodyImpl | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Mvc\Template\Plugin; |
6 | |
7 | use PeServer\Core\Mvc\Template\Plugin\TemplateModifierBase; |
8 | use PeServer\Core\Mvc\Template\Plugin\ITemplateModifier; |
9 | use PeServer\Core\Text; |
10 | |
11 | class DumpModifier extends TemplateModifierBase |
12 | { |
13 | public function __construct(TemplatePluginArgument $argument) |
14 | { |
15 | parent::__construct($argument); |
16 | } |
17 | |
18 | #region ITemplateModifier |
19 | |
20 | public function getModifierName(): string |
21 | { |
22 | return 'dump'; |
23 | } |
24 | |
25 | #endregion |
26 | |
27 | #region TemplateModifierBase |
28 | |
29 | protected function modifierBodyImpl(mixed $value, mixed ...$params): string |
30 | { |
31 | return Text::dump($value); |
32 | } |
33 | |
34 | #endregion |
35 | } |