headings and data of exports converted to event-driven

This commit is contained in:
Sevan Nerse
2021-03-06 15:28:28 +03:00
parent f810f970fd
commit 0e6abab8f2
3 changed files with 60 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Events\Export;
use App\Abstracts\Event;
class HeadingsPreparing extends Event
{
public $class;
/**
* Create a new event instance.
*
* @param $class
*/
public function __construct($class)
{
$this->class = $class;
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Events\Export;
use App\Abstracts\Event;
class RowsPreparing extends Event
{
public $class;
public $rows;
/**
* Create a new event instance.
*
* @param $class
* @param $rows
*/
public function __construct($class, $rows)
{
$this->class = $class;
$this->rows = $rows;
}
}