Kolyunya/string-processor

View on GitHub
sources/Translit/TranslatorInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Kolyunya\StringProcessor\Translit;

use Kolyunya\StringProcessor\ProcessorInterface;
use Kolyunya\StringProcessor\Translit\Dictionary\DictionaryInterface;

/**
 * Translator interface.
 * @author Kolyunya
 */
interface TranslatorInterface extends ProcessorInterface
{
    /**
     * Sets translation dictionary.
     * @param DictionaryInterface $dictionary Translation dictionary.
     */
    public function setDictionary(DictionaryInterface $dictionary);

    /**
     * Sets translation direction.
     * @param integer $direction Translation direction.
     */
    public function setDirection($direction);
}