1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/Events/Design/DesignWasDeleted.php
2020-06-22 08:34:02 +10:00

50 lines
918 B
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com)
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\Events\Client;
use App\Models\Client;
use Illuminate\Queue\SerializesModels;
/**
* Class DesignWasDeleted.
*/
class DesignWasDeleted
{
use SerializesModels;
/**
* @var Design
*/
public $design;
/**
* Create a new event instance.
*
* @param Design $design
*/
public function __construct(Design $design)
{
$this->design = $design;
}
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
*/
public function broadcastOn()
{
return new PrivateChannel('channel-name');
}
}
}