src/Specification/ImportSpecification.php
final public function addTransformer(Transformer $transformer)
    {
        if ($this->hasTransformer($transformer)) {
            throw new DuplicateTransformerException('Transformer already added.');
        }

        $this->transformers[spl_object_hash($transformer)] = $transformer;

        return $this;
    }
final public function addTransformer(Transformer $transformer)
    {
        if ($this->hasTransformer($transformer)) {
            throw new DuplicateTransformerException('Transformer already added.');
        }

        $this->transformers[spl_object_hash($transformer)] = $transformer;

        return $this;
    }
final public function addTransformer ( Transformer $ transformer ) { if ( $ this -> hasTransformer ( $ transformer ) ) { throw new DuplicateTransformerException ( 'Transformer already added.' ) ; } $ this -> transformers [ spl_object_hash ( $ transformer ) ] = $ transformer ; return $ this ; }
Adds the specified transformer.

@param Transformer $transformer Transformer.

@return $this
Adds the specified transformer .