| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait EndPointParametersTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | * @readonly |
||
| 15 | */ |
||
| 16 | private $parameters = []; |
||
| 17 | |||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | * |
||
| 22 | * @psalm-mutation-free |
||
| 23 | */ |
||
| 24 | 32 | public function get(string $parameter) |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | * |
||
| 32 | * @psalm-mutation-free |
||
| 33 | */ |
||
| 34 | 78 | public function parameters(): array |
|
| 35 | { |
||
| 36 | 78 | return $this->parameters; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | * |
||
| 42 | * @param mixed $value |
||
| 43 | * |
||
| 44 | * @return static |
||
| 45 | * |
||
| 46 | * @psalm-mutation-free |
||
| 47 | */ |
||
| 48 | 66 | public function set(string $parameter, $value): self |
|
| 55 | } |
||
| 56 | } |
||
| 57 |