@@ 84-92 (lines=9) @@ | ||
81 | ||
82 | // для адъективных существительных правила склонения проще: |
|
83 | // только две формы |
|
84 | if (static::isAdjectiveNoun($word)) { |
|
85 | if (static::getNumeralForm($count) == static::ONE) |
|
86 | return $word; |
|
87 | else |
|
88 | return NounPluralization::getCase($word, |
|
89 | $case !== null |
|
90 | ? $case |
|
91 | : static::RODIT, $animateness); |
|
92 | } |
|
93 | ||
94 | if ($case === null) { |
|
95 | switch (static::getNumeralForm($count)) { |
|
@@ 105-108 (lines=4) @@ | ||
102 | } |
|
103 | } |
|
104 | ||
105 | if (static::getNumeralForm($count) == static::ONE) |
|
106 | return NounDeclension::getCase($word, $case, $animateness); |
|
107 | else |
|
108 | return NounPluralization::getCase($word, $case, $animateness); |
|
109 | } |
|
110 | ||
111 | /** |