blessing-skin-server/app/Events/GetPlayerJson.php
2016-08-29 15:28:20 +08:00

39 lines
669 B
PHP

<?php
namespace App\Events;
use App\Models\Player;
use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class GetPlayerJson extends Event
{
use SerializesModels;
public $player;
public $api_type;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(Player $player, $api_type)
{
$this->player = $player;
$this->api_type = $api_type;
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
}
}