MenaraSolutions/geographer

View on GitHub
src/Contracts/TranslationAgencyInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace MenaraSolutions\Geographer\Contracts;

/**
 * Interface TranslationRepositoryInterface
 * @package MenaraSolutions\FluentGeonames\Contracts
 */
interface TranslationAgencyInterface
{
    /**
     * @param IdentifiableInterface $subject
     * @param string $language
     * @return string
     */
    public function translate(IdentifiableInterface $subject, $language);

    /**
     * @return RepositoryInterface $repository
     */
    public function getRepository();

    /**
     * @param RepositoryInterface $repository
     * @return TranslationAgencyInterface
     */
    public function setRepository($repository);

    /**
     * @return array
     */
    public function getSupportedLanguages();

    /**
     * @param $form
     * @return TranslationAgencyInterface
     */
    public function setForm($form);

    /**
     * @return TranslationAgencyInterface
     */
    public function includePrepositions();

    /**
     * @return TranslationAgencyInterface
     */
    public function excludePrepositions();
}