App\Events\TaskAction::__construct PHP Method

__construct() public method

Create a new event instance.
public __construct ( Tasks $task, $action ) : void
$task app\models\Tasks
return void
    public function __construct(Tasks $task, $action)
    {
        $this->task = $task;
        $this->action = $action;
    }