Total Complexity | 10 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 45% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | trait Options |
||
10 | { |
||
11 | /** |
||
12 | * |
||
13 | * @var array<string, mixed> |
||
14 | */ |
||
15 | protected array $options = []; |
||
16 | |||
17 | 90 | public function setOption(string $key, mixed $value, bool $useInternalMethods = true): self |
|
27 | } |
||
28 | |||
29 | public function getOption(string $key, mixed $defaults = null, bool $useInternalMethods = true): mixed |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param array<string, mixed> $options |
||
44 | * @psalm-suppress MixedAssignment |
||
45 | */ |
||
46 | public function setOptions(array $options = [], bool $useInternalMethods = true): self |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return array<string, mixed> |
||
56 | */ |
||
57 | 90 | public function getOptions(): array |
|
62 |