Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class CallableAccess implements Comparable |
||
11 | { |
||
12 | /** @psalm-var Closure(mixed):string */ |
||
13 | private Closure $func; |
||
14 | |||
15 | /** @psalm-param callable(mixed):string $func */ |
||
16 | 2 | public function __construct(private Collator $collator, callable $func) |
|
17 | { |
||
18 | 2 | $this->func = Closure::fromCallable($func); |
|
19 | } |
||
20 | |||
21 | 1 | public function compare(mixed $value, mixed $comparativeValue): int |
|
26 | ); |
||
27 | } |
||
29 |