Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | trait ParametersAwareTrait |
||
8 | { |
||
9 | protected ParametersInterface $params; |
||
10 | |||
11 | public function setParameters(ParametersInterface $params): void |
||
12 | { |
||
13 | $this->params = $params; |
||
14 | } |
||
15 | |||
16 | public function getParameters(): ParametersInterface |
||
19 | } |
||
20 | |||
21 | public function getParam(string $name, mixed $default = null): mixed |
||
22 | { |
||
23 | 4 | return $this->params->getParam($name, $default); |
|
24 | } |
||
25 | 4 | ||
26 | public function setParam(string $name, mixed $value): void |
||
29 | } |
||
30 | } |
||
31 |