1 | <?php |
||
8 | class NicknameMapper extends AbstractMapper |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $delimiters = [ |
||
14 | '[' => ']', |
||
15 | '{' => '}', |
||
16 | '(' => ')', |
||
17 | '<' => '>', |
||
18 | '"' => '"', |
||
19 | '\'' => '\'' |
||
20 | ]; |
||
21 | |||
22 | public function __construct(array $delimiters = []) |
||
28 | |||
29 | /** |
||
30 | * map nicknames in the parts array |
||
31 | * |
||
32 | * @param array $parts the name parts |
||
33 | * @return array the mapped parts |
||
34 | */ |
||
35 | public function map(array $parts): array |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | protected function buildRegexp() |
||
84 | } |
||
85 |