ParseFighter
class ParseFighter (View source)
The ParseFighter class is responsible for parsing fighter details from HTML and returning a FighterDTO.
It uses the Symfony DomCrawler to extract relevant information from the HTML structure.
Example usage: $html = file_get_contents('fighter_detail.html'); $parser = new ParseFighter(); $fighterDTO = $parser($html); // $fighterDTO will contain the parsed fighter details
Methods
__invoke(string $html)
Parse fighter details from HTML and return a FighterDTO.
Details
FighterDTO
__invoke(string $html)
Parse fighter details from HTML and return a FighterDTO.