| Total Complexity | 10 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 45% |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 7 | trait Options |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * |
||
| 11 | * @var array<string, mixed> |
||
| 12 | */ |
||
| 13 | protected array $options = []; |
||
| 14 | |||
| 15 | 93 | public function setOption(string $key, mixed $value, bool $useInternalMethods = true): static |
|
| 25 | } |
||
| 26 | |||
| 27 | public function getOption(string $key, mixed $defaults = null, bool $useInternalMethods = true): mixed |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param array<string, mixed> $options |
||
| 42 | * @psalm-suppress MixedAssignment |
||
| 43 | */ |
||
| 44 | public function setOptions(array $options = [], bool $useInternalMethods = true): static |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array<string, mixed> |
||
| 54 | */ |
||
| 55 | 93 | public function getOptions(): array |
|
| 60 |