X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FBehat%2FDefinition%2FTranslator%2FTranslatedDefinition.php;fp=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FBehat%2FDefinition%2FTranslator%2FTranslatedDefinition.php;h=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=69813facb99a9d6b4efd3ab5fcc1fb0eb1c11e12;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/behat/behat/src/Behat/Behat/Definition/Translator/TranslatedDefinition.php b/vendor/behat/behat/src/Behat/Behat/Definition/Translator/TranslatedDefinition.php deleted file mode 100644 index 69813facb..000000000 --- a/vendor/behat/behat/src/Behat/Behat/Definition/Translator/TranslatedDefinition.php +++ /dev/null @@ -1,140 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Behat\Behat\Definition\Translator; - -use Behat\Behat\Definition\Definition; - -/** - * Represents definition translated to the specific language. - * - * @author Konstantin Kudryashov - */ -final class TranslatedDefinition implements Definition -{ - /** - * @var Definition - */ - private $definition; - /** - * @var string - */ - private $translatedPattern; - /** - * @var string - */ - private $language; - - /** - * Initialises translated definition. - * - * @param Definition $definition - * @param string $translatedPattern - * @param string $language - */ - public function __construct(Definition $definition, $translatedPattern, $language) - { - $this->definition = $definition; - $this->translatedPattern = $translatedPattern; - $this->language = $language; - } - - /** - * {@inheritdoc} - */ - public function getType() - { - return $this->definition->getType(); - } - - /** - * {@inheritdoc} - */ - public function getPattern() - { - return $this->translatedPattern; - } - - /** - * Returns original (not translated) pattern. - * - * @return string - */ - public function getOriginalPattern() - { - return $this->definition->getPattern(); - } - - /** - * Returns language definition was translated to. - * - * @return string - */ - public function getLanguage() - { - return $this->language; - } - - /** - * {@inheritdoc} - */ - public function getDescription() - { - return $this->definition->getDescription(); - } - - /** - * {@inheritdoc} - */ - public function getPath() - { - return $this->definition->getPath(); - } - - /** - * {@inheritdoc} - */ - public function isAMethod() - { - return $this->definition->isAMethod(); - } - - /** - * {@inheritdoc} - */ - public function isAnInstanceMethod() - { - return $this->definition->isAnInstanceMethod(); - } - - /** - * {@inheritdoc} - */ - public function getCallable() - { - return $this->definition->getCallable(); - } - - /** - * {@inheritdoc} - */ - public function getReflection() - { - return $this->definition->getReflection(); - } - - /** - * {@inheritdoc} - */ - public function __toString() - { - return $this->definition->__toString(); - } -}