mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
49 lines
916 B
PHP
49 lines
916 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 DesignWasCreated.
|
|
*/
|
|
class DesignWasCreated
|
|
{
|
|
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');
|
|
}
|
|
}
|