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) |
||
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | public function getByCodepoints(Codepoint\Collection $codepoints) |
||
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | public function getAll() |
||
64 | |||
65 | /** |
||
66 | * {@inheritDoc} |
||
67 | */ |
||
68 | public function getCodepointsByBlock(Block $block) |
||
74 | |||
75 | /** |
||
76 | * {@inheritDoc} |
||
77 | */ |
||
78 | public function getCodepointsByCategory(GeneralCategory $category) |
||
84 | |||
85 | /** |
||
86 | * {@inheritDoc} |
||
87 | */ |
||
88 | public function getCodepointsByScript(Script $script) |
||
94 | |||
95 | /** |
||
96 | * {@inheritDoc} |
||
97 | */ |
||
98 | public function count() |
||
104 | |||
105 | /** |
||
106 | * @param string $method |
||
107 | * @param array $details |
||
108 | */ |
||
109 | protected function logMethodCall($method, array $details = []) |
||
114 | |||
115 | /** |
||
116 | * @param string $method |
||
117 | * @param array $details |
||
118 | * @return string |
||
119 | */ |
||
120 | protected function composeMessageFromMethodDetails($method, array $details = []) |
||
124 | |||
125 | /** |
||
126 | * @param string $message |
||
127 | */ |
||
128 | protected function log($message) |
||
132 | } |