Ejemplo n.º 1
0
 /**
  * @param $data
  * @throws Exception
  */
 public function report($data)
 {
     $reporting = new Reporting();
     if (!is_array($data)) {
         throw new Exception('Bad Request');
     }
     $reporting->setReport($data);
     $reporting->save();
     $this->show('Generate report file: ' . $reporting->getReportName() . PHP_EOL);
 }