1 | <?php |
||
13 | class DebugRepository implements Repository |
||
14 | { |
||
15 | /** |
||
16 | * @var Repository |
||
17 | */ |
||
18 | protected $delegate; |
||
19 | |||
20 | /** |
||
21 | * @var LoggerInterface |
||
22 | */ |
||
23 | private $logger; |
||
24 | |||
25 | /** |
||
26 | * @param Repository $delegate |
||
27 | * @param LoggerInterface $logger |
||
28 | */ |
||
29 | public function __construct(Repository $delegate, LoggerInterface $logger) |
||
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | public function getByCodepoint(Codepoint $codepoint) |
||
45 | |||
46 | /** |
||
47 | * {@inheritDoc} |
||
48 | */ |
||
49 | public function getByCodepoints(Codepoint\Collection $codepoints) |
||
56 | |||
57 | /** |
||
58 | * {@inheritDoc} |
||
59 | */ |
||
60 | public function getAll() |
||
67 | |||
68 | /** |
||
69 | * {@inheritDoc} |
||
70 | */ |
||
71 | public function getCodepointsByBlock(Block $block) |
||
78 | |||
79 | /** |
||
80 | * {@inheritDoc} |
||
81 | */ |
||
82 | public function getCodepointsByCategory(GeneralCategory $category) |
||
89 | |||
90 | /** |
||
91 | * {@inheritDoc} |
||
92 | */ |
||
93 | public function count() |
||
100 | |||
101 | /** |
||
102 | * @param string $method |
||
103 | * @param array $details |
||
104 | * @return string |
||
105 | */ |
||
106 | protected function composeMessage($method, array $details = []) |
||
110 | |||
111 | /** |
||
112 | * @param string $message |
||
113 | */ |
||
114 | protected function log($message) |
||
118 | } |