Property | Type | Description | |
---|---|---|---|
$basePath | string | ||
$form | string | ||
$inflictsTo | array | ||
$languages | array | List of available translators | |
$prepositions | boolean | ||
$repository | MenaraSolutions\Geographer\Contracts\RepositoryInterface | ||
$translators | PoliglottaInterface |
Method | Description | |
---|---|---|
__construct ( string $basePath, MenaraSolutions\Geographer\Contracts\RepositoryInterface $repository ) | TranslationRepository constructor. | |
excludePrepositions ( ) | ||
getRepository ( ) : MenaraSolutions\Geographer\Contracts\RepositoryInterface | ||
getSupportedLanguages ( ) : array | ||
getTranslator ( string $language ) : MenaraSolutions\Geographer\Contracts\PoliglottaInterface | ||
includePrepositions ( ) | ||
setForm ( string $form ) | ||
setRepository ( MenaraSolutions\Geographer\Contracts\RepositoryInterface $repository ) : MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface | ||
translate ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject, string $language = 'en' ) : string |
public __construct ( string $basePath, MenaraSolutions\Geographer\Contracts\RepositoryInterface $repository ) | ||
$basePath | string | |
$repository | MenaraSolutions\Geographer\Contracts\RepositoryInterface |
public getRepository ( ) : MenaraSolutions\Geographer\Contracts\RepositoryInterface | ||
return | MenaraSolutions\Geographer\Contracts\RepositoryInterface | $repository |
public getTranslator ( string $language ) : MenaraSolutions\Geographer\Contracts\PoliglottaInterface | ||
$language | string | |
return | MenaraSolutions\Geographer\Contracts\PoliglottaInterface |
public setRepository ( MenaraSolutions\Geographer\Contracts\RepositoryInterface $repository ) : MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface | ||
$repository | MenaraSolutions\Geographer\Contracts\RepositoryInterface | |
return | MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface |
protected array $languages | ||
return | array |
protected RepositoryInterface,MenaraSolutions\Geographer\Contracts $repository | ||
return | MenaraSolutions\Geographer\Contracts\RepositoryInterface |