class FightDTO (View source)

Data Transfer Object representing a fight.

Methods

__construct(FighterDTO $redFighter, FighterDTO $blueFighter, Source $source, FightStatus|null $status = null, WeightClass|null $weightClass = null, FightMethod|null $method = null, int|null $round = null, string|null $time = null, FighterDTO|null $winner = null, DateTimeImmutable|null $fightDate = null)

FightDTO constructor.

Details

__construct(FighterDTO $redFighter, FighterDTO $blueFighter, Source $source, FightStatus|null $status = null, WeightClass|null $weightClass = null, FightMethod|null $method = null, int|null $round = null, string|null $time = null, FighterDTO|null $winner = null, DateTimeImmutable|null $fightDate = null)

FightDTO constructor.

Parameters

FighterDTO $redFighter

Red Fighter information.

FighterDTO $blueFighter

Blue Fighter information.

Source $source

The source from which the fight data was scraped.

FightStatus|null $status

The status of the fight (e.g., scheduled, completed).

WeightClass|null $weightClass

The weight class of the fight (e.g., Lightweight, Middleweight).

FightMethod|null $method

The method of victory (e.g., KO, Submission).

int|null $round

The round in which the fight ended.

string|null $time

The time at which the fight ended in the final round.

FighterDTO|null $winner

The winner of the fight, if applicable.

DateTimeImmutable|null $fightDate

The date of the fight.