1 | <?php |
||
8 | class SuffixMapper extends AbstractMapper |
||
9 | { |
||
10 | /** |
||
11 | * @var array options |
||
12 | */ |
||
13 | protected $options = [ |
||
14 | 'match_single' => false, |
||
15 | ]; |
||
16 | |||
17 | /** |
||
18 | * map suffixes in the parts array |
||
19 | * |
||
20 | * @param array $parts the name parts |
||
21 | * @return array the mapped parts |
||
22 | */ |
||
23 | public function map(array $parts) |
||
44 | |||
45 | /** |
||
46 | * @param $parts |
||
47 | * @return bool |
||
48 | */ |
||
49 | protected function isMatchingSinglePart($parts) |
||
61 | |||
62 | /** |
||
63 | * @param $part |
||
64 | * @return bool |
||
65 | */ |
||
66 | protected function isSuffix($part): bool |
||
74 | } |
||
75 |