@@ 139-148 (lines=10) @@ | ||
136 | } |
|
137 | ||
138 | switch ($gender) { |
|
139 | case static::MALE: |
|
140 | $prefix = S::slice($word, 0, -2); |
|
141 | return [ |
|
142 | static::IMENIT => $word, |
|
143 | static::RODIT => $prefix.'ого', |
|
144 | static::DAT => $prefix.'ому', |
|
145 | static::VINIT => $word, |
|
146 | static::TVORIT => $prefix.'ым', |
|
147 | static::PREDLOJ => $prefix.'ом', |
|
148 | ]; |
|
149 | ||
150 | case static::FEMALE: |
|
151 | $prefix = S::slice($word, 0, -2); |
|
@@ 150-159 (lines=10) @@ | ||
147 | static::PREDLOJ => $prefix.'ом', |
|
148 | ]; |
|
149 | ||
150 | case static::FEMALE: |
|
151 | $prefix = S::slice($word, 0, -2); |
|
152 | return [ |
|
153 | static::IMENIT => $prefix.'ая', |
|
154 | static::RODIT => $prefix.'ой', |
|
155 | static::DAT => $prefix.'ой', |
|
156 | static::VINIT => $prefix.'ую', |
|
157 | static::TVORIT => $prefix.'ой', |
|
158 | static::PREDLOJ => $prefix.'ой', |
|
159 | ]; |
|
160 | ||
161 | case static::NEUTER: |
|
162 | $prefix = S::slice($word, 0, -2); |
|
@@ 161-170 (lines=10) @@ | ||
158 | static::PREDLOJ => $prefix.'ой', |
|
159 | ]; |
|
160 | ||
161 | case static::NEUTER: |
|
162 | $prefix = S::slice($word, 0, -2); |
|
163 | return [ |
|
164 | static::IMENIT => $prefix.'ое', |
|
165 | static::RODIT => $prefix.'ого', |
|
166 | static::DAT => $prefix.'ому', |
|
167 | static::VINIT => $prefix.'ое', |
|
168 | static::TVORIT => $prefix.'ым', |
|
169 | static::PREDLOJ => $prefix.'ом', |
|
170 | ]; |
|
171 | ||
172 | default: |
|
173 | throw new RuntimeException('Unreacheable'); |