PHP Class MenaraSolutions\Geographer\Services\Poliglottas\Russian

Inheritance: extends Base
Show file Open project: menarasolutions/geographer

Protected Properties

Property Type Description
$code string
$defaultPrepositions array
$removableLetters array
$replacementsFrom array
$replacementsIn array
$vowels array

Protected Methods

Method Description
getPreposition ( $form, string $result = null ) : string
inflictFrom ( string $template ) : string
inflictIn ( string $template ) : string

Private Methods

Method Description
attemptToInflictFirstWordFrom ( $string ) : string
attemptToInflictFirstWordIn ( $string ) : string
getLastLetter ( $string, integer $count = 1 ) : string
isTwoWords ( $string ) : boolean
isVowel ( string $character ) : boolean
removeLastLetter ( $string, integer $count = 1 ) : string
removeLastLetterIfNeeded ( $template ) : string

Method Details

getPreposition() protected method

protected getPreposition ( $form, string $result = null ) : string
$form
$result string
return string

inflictFrom() protected method

protected inflictFrom ( string $template ) : string
$template string
return string

inflictIn() protected method

protected inflictIn ( string $template ) : string
$template string
return string

Property Details

$code protected property

protected string $code
return string

$defaultPrepositions protected property

protected array $defaultPrepositions
return array

$removableLetters protected property

protected array $removableLetters
return array

$replacementsFrom protected property

protected array $replacementsFrom
return array

$replacementsIn protected property

protected array $replacementsIn
return array

$vowels protected property

protected array $vowels
return array