class FighterDTO (View source)

Data Transfer Object representing a fighter.

Methods

__construct(string $name, string|null $nameEn = null, string|null $nickname = null, string|null $instagram = null, string|null $teamname = null, string|null $height = null, int|null $win = null, int|null $lose = null, int|null $draw = null, int|null $sherdogId = null)

FighterDTO constructor.

Details

__construct(string $name, string|null $nameEn = null, string|null $nickname = null, string|null $instagram = null, string|null $teamname = null, string|null $height = null, int|null $win = null, int|null $lose = null, int|null $draw = null, int|null $sherdogId = null)

FighterDTO constructor.

Parameters

string $name

The name of the fighter.

string|null $nameEn

The English name of the fighter, if available.

string|null $nickname

The fighter's nickname, if available.

string|null $instagram

The fighter's Instagram handle, if available.

string|null $teamname

The name of the fighter's team or gym, if available.

string|null $height

The fighter's height, if available.

int|null $win

The number of wins the fighter has, if available.

int|null $lose

The number of losses the fighter has, if available.

int|null $draw

The number of draws the fighter has, if available.

int|null $sherdogId

The fighter's Sherdog ID, if available.