transformWith() public method

Set the class or function that will perform the transform.
public transformWith ( League\Fractal\TransformerAbstract | callable $transformer )
$transformer League\Fractal\TransformerAbstract | callable
 /**
  * @param callable|\League\Fractal\TransformerAbstract $transformer
  */
 protected function setTransformer($transformer)
 {
     $this->fractal->transformWith($transformer);
 }