@@ 79-87 (lines=9) @@ | ||
76 | ||
77 | // для адъективных существительных правила склонения проще: |
|
78 | // только две формы |
|
79 | if (static::isAdjectiveNoun($word)) { |
|
80 | if (static::getNumeralForm($count) == static::ONE) |
|
81 | return $word; |
|
82 | else |
|
83 | return NounPluralization::getCase($word, |
|
84 | $case !== null |
|
85 | ? $case |
|
86 | : static::RODIT, $animateness); |
|
87 | } |
|
88 | ||
89 | if ($case === null) { |
|
90 | switch (static::getNumeralForm($count)) { |
|
@@ 100-103 (lines=4) @@ | ||
97 | } |
|
98 | } |
|
99 | ||
100 | if (static::getNumeralForm($count) == static::ONE) |
|
101 | return NounDeclension::getCase($word, $case, $animateness); |
|
102 | else |
|
103 | return NounPluralization::getCase($word, $case, $animateness); |
|
104 | } |
|
105 | ||
106 | /** |