/** * Transformer constructor. * * @param Model|\Illuminate\Support\Collection $item * @param bool $childTransformation */ public function __construct($item = null, $childTransformation = false) { parent::__construct($item); $this->childTransformation = $childTransformation; }