EventStatus
in package
A broad reading of a strStatus code, so you don't need every sport's codes. Covers the codes in TheSportsDB's data documentation (docs_api_data) for every sport.
Table of Contents
Cases
- Abandoned
- Cancelled
- Finished
- InPlay
- Interrupted
- Suspended or interrupted (SUSP, INT, INTR): stopped, and may resume.
- NotStarted
- Postponed
- Unknown
- Null, or a code this library doesn't know. The raw code is still on the record.
Methods
- of() : self
- Classifies a raw code (NS, 2H, Q3, P2, IN4, S2, FT, PST...).
Cases
NotStarted
InPlay
Finished
Postponed
Interrupted
Suspended or interrupted (SUSP, INT, INTR): stopped, and may resume.
Cancelled
Abandoned
Unknown
Null, or a code this library doesn't know. The raw code is still on the record.
Methods
of()
Classifies a raw code (NS, 2H, Q3, P2, IN4, S2, FT, PST...).
public
static of(string|null $code) : self
Parameters
- $code : string|null