@@ 97-110 (lines=14) @@ | ||
94 | /** |
|
95 | * @return Parser |
|
96 | */ |
|
97 | protected function getFirstSegmentParser(): Parser |
|
98 | { |
|
99 | $parser = new Parser(); |
|
100 | ||
101 | $parser->setMappers([ |
|
102 | new SalutationMapper($this->getSalutations()), |
|
103 | new SuffixMapper($this->getSuffixes()), |
|
104 | new LastnameMapper($this->getPrefixes(), true), |
|
105 | new FirstnameMapper(), |
|
106 | new MiddlenameMapper(), |
|
107 | ]); |
|
108 | ||
109 | return $parser; |
|
110 | } |
|
111 | ||
112 | /** |
|
113 | * @return Parser |
|
@@ 115-129 (lines=15) @@ | ||
112 | /** |
|
113 | * @return Parser |
|
114 | */ |
|
115 | protected function getSecondSegmentParser(): Parser |
|
116 | { |
|
117 | $parser = new Parser(); |
|
118 | ||
119 | $parser->setMappers([ |
|
120 | new SalutationMapper($this->getSalutations()), |
|
121 | new SuffixMapper($this->getSuffixes(), true), |
|
122 | new NicknameMapper($this->getNicknameDelimiters()), |
|
123 | new InitialMapper(true), |
|
124 | new FirstnameMapper(), |
|
125 | new MiddlenameMapper(), |
|
126 | ]); |
|
127 | ||
128 | return $parser; |
|
129 | } |
|
130 | ||
131 | protected function getThirdSegmentParser(): Parser |
|
132 | { |