1 | <?php |
||
17 | class TypeNameReducer implements ReducerInterface |
||
18 | { |
||
19 | /** |
||
20 | * @param RuleInterface $rule |
||
21 | * @return bool |
||
22 | */ |
||
23 | public function match(RuleInterface $rule): bool |
||
27 | |||
28 | /** |
||
29 | * @param RuleInterface $rule |
||
30 | * @return string |
||
31 | */ |
||
32 | public function reduce(RuleInterface $rule): string |
||
38 | |||
39 | /** |
||
40 | * @param RuleInterface $rule |
||
41 | * @return \Traversable|string[] |
||
42 | */ |
||
43 | private function getChunks(RuleInterface $rule): \Traversable |
||
49 | } |
||
50 |