Beispiel #1
0
 protected final function save($file, $content)
 {
     if (file_exists($this->location . '/' . $file)) {
         $this->reportIfc->reportStatus('<error>File ' . $this->location . '/' . $file . ' already exists!</error>');
     } else {
         $this->reportIfc->reportStatus('<info>Generating file \'' . $this->location . '/' . $file . '\'...</info>');
         file_put_contents($this->location . '/' . $file, $content);
     }
 }
 public function reportShouldBeFilledFromMatch($match, ReportInterface $report)
 {
     $report->receiveAPlot($key, $value);
     return $this;
 }
Beispiel #3
0
 /**
  * Add a new report
  *
  * @param ReportInterface $report
  */
 public function addReport(ReportInterface $report)
 {
     $this->reports[$report->getName()] = $report;
 }