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
|
2019-03-02 22:58:37 +08:00
|
|
|
* USM_API = 1.
|
2018-02-16 16:25:35 +08:00
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $apiType;
|
2016-08-29 15:28:20 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
2019-12-14 11:10:37 +08:00
|
|
|
* @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
|
|
|
{
|
2019-03-02 22:58:37 +08:00
|
|
|
$this->player = $player;
|
|
|
|
$this->apiType = $apiType;
|
2016-08-29 15:28:20 +08:00
|
|
|
}
|
|
|
|
}
|