1 | <?php |
||
12 | class DebugRepository implements Repository |
||
13 | { |
||
14 | /** |
||
15 | * @var Repository |
||
16 | */ |
||
17 | protected $delegate; |
||
18 | |||
19 | /** |
||
20 | * @var LoggerInterface |
||
21 | */ |
||
22 | private $logger; |
||
23 | |||
24 | /** |
||
25 | * @param Repository $delegate |
||
26 | * @param LoggerInterface $logger |
||
27 | */ |
||
28 | public function __construct(Repository $delegate, LoggerInterface $logger) |
||
33 | |||
34 | /** |
||
35 | * {@inheritDoc} |
||
36 | */ |
||
37 | public function getByCodepoint(Codepoint $codepoint) |
||
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | public function getByCodepoints(Codepoint\Collection $codepoints) |
||
55 | |||
56 | /** |
||
57 | * {@inheritDoc} |
||
58 | */ |
||
59 | public function getAll() |
||
66 | |||
67 | /** |
||
68 | * {@inheritDoc} |
||
69 | */ |
||
70 | public function getCodepointsByBlock(Block $block) |
||
77 | |||
78 | /** |
||
79 | * {@inheritDoc} |
||
80 | */ |
||
81 | public function count() |
||
88 | |||
89 | /** |
||
90 | * @param string $method |
||
91 | * @param array $details |
||
92 | * @return string |
||
93 | */ |
||
94 | protected function composeMessage($method, array $details = []) |
||
98 | |||
99 | /** |
||
100 | * @param string $message |
||
101 | */ |
||
102 | protected function log($message) |
||
106 | } |