Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class CallableDecoratorAdapter implements AdapterInterface |
||
11 | { |
||
12 | private $adapter; |
||
13 | private $callback; |
||
14 | |||
15 | public function __construct(AdapterInterface $adapter, callable $callback) |
||
16 | { |
||
17 | $this->adapter = $adapter; |
||
18 | $this->callback = $callback; |
||
19 | } |
||
20 | |||
21 | public function getNbResults(): int |
||
24 | } |
||
25 | |||
26 | public function getSlice($offset, $length): array |
||
32 | } |
||
33 | } |
||
34 |