mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
50 lines
918 B
PHP
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');
|
|
}
|
|
}
|
|
}
|