Свойство | Type | Description | |
---|---|---|---|
$agency | MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface | ||
$cache | array | ||
$code | string | ||
$defaultPrepositions | array |
Méthode | Description | |
---|---|---|
__construct ( MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface $agency ) | Base constructor. | |
translate ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject, string $form = 'default', boolean $preposition = true ) : string |
Méthode | Description | |
---|---|---|
extract ( array $meta, boolean $long, $form, boolean $fallback = false ) : mixed | ||
fromDictionary ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject ) : array | ||
getPreposition ( $form, string $result = null ) : string | ||
inflictDefault ( array $meta, $long ) : string | ||
inflictFrom ( string $template ) : string | ||
inflictIn ( string $template ) : string |
public __construct ( MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface $agency ) | ||
$agency | MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface |
protected fromDictionary ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject ) : array | ||
$subject | MenaraSolutions\Geographer\Contracts\IdentifiableInterface | |
Résultat | array |
protected getPreposition ( $form, string $result = null ) : string | ||
$form | ||
$result | string | |
Résultat | string |
protected inflictDefault ( array $meta, $long ) : string | ||
$meta | array | |
$long | ||
Résultat | string |
protected inflictFrom ( string $template ) : string | ||
$template | string | |
Résultat | string |
protected TranslationAgencyInterface,MenaraSolutions\Geographer\Contracts $agency | ||
Résultat | MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface |