Exemple #1
0
 /**
  * Init a new sheet.
  *
  * @param         $title
  * @param Closure $callback
  *
  * @return Sheet
  */
 public function sheet($title, Closure $callback = null)
 {
     // Init a new sheet
     $sheet = new Sheet($this, $title, null, $this->driver);
     // Preform callback on the sheet
     $sheet->call($callback);
     // Add the sheet to the collection
     $this->addSheet($sheet);
     return $sheet;
 }