Registry/TransformerRegistry.php
public function getTransformer($code)
    {
        if (!$this->hasTransformer($code)) {
            throw new MissingTransformerException($code);
        }

        return $this->transformers[$code];
    }
public function getTransformer($code)
    {
        if (!$this->hasTransformer($code)) {
            throw new MissingTransformerException($code);
        }

        return $this->transformers[$code];
    }
@param string $code

@throws MissingTransformerException

@return TransformerInterface