2016-08-29 15:28:20 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
|
|
|
|
|
|
|
use App\Models\Player;
|
|
|
|
|
|
|
|
class GetPlayerJson extends Event
|
|
|
|
{
|
|
|
|
public $player;
|
|
|
|
|
2018-02-16 16:25:35 +08:00
|
|
|
/**
|
|
|
|
* CSL_API = 0
|
|
|
|
* USM_API = 1
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $apiType;
|
2016-08-29 15:28:20 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
2018-02-16 16:25:35 +08:00
|
|
|
* @param Player $player
|
|
|
|
* @param int $apiType
|
2016-08-29 15:28:20 +08:00
|
|
|
* @return void
|
|
|
|
*/
|
2018-02-16 16:25:35 +08:00
|
|
|
public function __construct(Player $player, $apiType)
|
2016-08-29 15:28:20 +08:00
|
|
|
{
|
|
|
|
$this->player = $player;
|
2018-02-16 16:25:35 +08:00
|
|
|
$this->apiType = $apiType;
|
2016-08-29 15:28:20 +08:00
|
|
|
}
|
|
|
|
}
|