From 252a2f9d4fab28f4035cf53f9bd20df46a64b154 Mon Sep 17 00:00:00 2001 From: developer1 Date: Tue, 27 Aug 2019 12:53:47 +0430 Subject: [PATCH] fix undefined method bug --- src/Classes/Transform.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Classes/Transform.php b/src/Classes/Transform.php index af59eed..bf8ffac 100644 --- a/src/Classes/Transform.php +++ b/src/Classes/Transform.php @@ -84,6 +84,19 @@ public function getTransformedData() : array return $this->transformedData; } + /** + * Set transformer + * + * @param TransformerInterface $transformer + * @return $this + */ + public function setTransformer(TransformerInterface $transformer) + { + $this->transformer = $transformer; + + return $this; + } + /** * Run transformer *