protected function getTransformer()
    {
        if (is_callable($this->transformer) || $this->transformer instanceof TransformerAbstract) {
            return $this->transformer;
        }

        return Craft::createObject($this->transformer);
    }
protected function getTransformer()
    {
        if (is_callable($this->transformer) || $this->transformer instanceof TransformerAbstract) {
            return $this->transformer;
        }

        return Craft::createObject($this->transformer);
    }
protected function getTransformer ( ) { if ( is_callable ( $ this -> transformer ) || $ this -> transformer instanceof TransformerAbstract ) { return $ this -> transformer ; } return Craft :: createObject ( $ this -> transformer ) ; }
Returns the transformer based on the given endpoint

@return callable|TransformerAbstract
Returns the transformer based on the given endpoint