Exemplo n.º 1
0
 /**
  * @param WorkbookInterface $workbook
  * @param                   $title
  * @param Closure           $callback
  * @param LeagueWriter      $driver
  */
 public function __construct(WorkbookInterface $workbook, $title = null, Closure $callback = null, LeagueWriter $driver = null)
 {
     // Set PHPExcel worksheet
     $this->driver = $driver ?: $workbook->getDriver();
     parent::__construct($title, $callback);
 }
Exemplo n.º 2
0
 /**
  * @param WorkbookInterface  $workbook
  * @param                    $title
  * @param Closure            $callback
  * @param PHPExcel_Worksheet $driver
  */
 public function __construct(WorkbookInterface $workbook, $title = 'New sheet', Closure $callback = null, PHPExcel_Worksheet $driver = null)
 {
     // Set PHPExcel worksheet
     $this->driver = $driver ?: new PHPExcel_Worksheet($workbook->getDriver());
     parent::__construct($title, $callback);
 }