public function __construct($baseReport) { $this->baseReport = is_string($baseReport) ? new $baseReport() : $baseReport; $this->dataClass = $this->baseReport->dataClass(); parent::__construct(); }
public function __construct($baseReport) { $this->baseReport = is_string($baseReport) ? new $baseReport() : $baseReport; $this->dataClass = $this->baseReport->dataClass(); parent::__construct(); }