morphos\RussianGeneralDeclension::getForms PHP Метод

getForms() публичный Метод

public getForms ( $word, $animate = false )
    public function getForms($word, $animate = false)
    {
        $word = lower($word);
        switch ($this->getDeclension($word)) {
            case self::FIRST_DECLENSION:
                return $this->declinateFirstDeclension($word, $animate);
            case self::SECOND_DECLENSION:
                return $this->declinateSecondDeclension($word);
            case self::THIRD_DECLENSION:
                return $this->declinateThirdDeclension($word);
        }
    }