MenaraSolutions\Geographer\Contracts\TranslationAgencyInterface::getRepository PHP Méthode

getRepository() public méthode

public getRepository ( ) : MenaraSolutions\Geographer\Contracts\RepositoryInterface
Résultat MenaraSolutions\Geographer\Contracts\RepositoryInterface $repository
    public function getRepository();

Usage Example

Exemple #1
0
 /**
  * @param IdentifiableInterface $subject
  * @return array
  */
 protected function fromDictionary(IdentifiableInterface $subject)
 {
     $translations = $this->agency->getRepository()->getTranslations($subject, $this->code);
     return $translations ?: $subject->getMeta();
 }