public function __construct(Player $player, $api_type) { $this->player = $player; $this->api_type = $api_type; }