프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$basePath | string | ||
$form | string | ||
$inflictsTo | array | ||
$languages | array | List of available translators | |
$prepositions | boolean | ||
$repository | MenaraSolutions\Geographer\Contracts\RepositoryInterface | ||
$translators | PoliglottaInterface |
메소드 | 설명 | |
---|---|---|
__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 | ||
리턴 | MenaraSolutions\Geographer\Contracts\RepositoryInterface | $repository |
public getTranslator ( string $language ) : MenaraSolutions\Geographer\Contracts\PoliglottaInterface | ||
$language | string | |
리턴 | MenaraSolutions\Geographer\Contracts\PoliglottaInterface |
public setRepository ( MenaraSolutions\Geographer\Contracts\RepositoryInterface $repository ) : MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface | ||
$repository | MenaraSolutions\Geographer\Contracts\RepositoryInterface | |
리턴 | MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface |
protected RepositoryInterface,MenaraSolutions\Geographer\Contracts $repository | ||
리턴 | MenaraSolutions\Geographer\Contracts\RepositoryInterface |