| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | trait ParameterBagTrait |
||
| 14 | { |
||
| 15 | /** @var ParameterBagInterface $parameterBag */ |
||
| 16 | protected $parameterBag; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return ParameterBagInterface |
||
| 20 | */ |
||
| 21 | public function getParameterBag(): ParameterBagInterface |
||
| 22 | { |
||
| 23 | return $this->parameterBag; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param ParameterBagInterface $parameterBag |
||
| 28 | */ |
||
| 29 | public function setParameterBag(ParameterBagInterface $parameterBag): void |
||
| 30 | { |
||
| 31 | $this->parameterBag = $parameterBag; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $name |
||
| 36 | * @return string|null |
||
| 37 | */ |
||
| 38 | public function getParameter(string $name): ?string |
||
| 45 | } |
||
| 46 | } |
||
| 47 |