EventParserInterface
interface EventParserInterface (View source)
Interface EventParserInterface
A contract for parsers that can parse event and fight information from HTML content.
Methods
array
parseEvents(string $html)
Parse multiple events from the given HTML and return an array of EventDTO objects.
parseEvent(string $html)
Parse a single event from the given HTML and return an EventDTO object.
array
parseFights(string $html)
Parse fights from the given HTML and return an array of FightDTO objects.
Details
array
parseEvents(string $html)
Parse multiple events from the given HTML and return an array of EventDTO objects.
EventDTO
parseEvent(string $html)
Parse a single event from the given HTML and return an EventDTO object.
array
parseFights(string $html)
Parse fights from the given HTML and return an array of FightDTO objects.