/** * Returns a new instance of of the given report name. * * @return Report New instnace of this controller's report. */ private function getReportInstance() { $name = $this->getReportClassName(); ReportFactory::loadReportClass($name); return new $name(); }