class MatchQueryBuilder extends QueryBuilder

This class can be used to search for matches with specific characteristics in the database.

Methods

with(Team|Player $participant, string $result = null)

Only include matches where a specific team/player played

$this
groupByMonth()

Group results by day

array
getSummary(Team $team)

Get a count for each month's matches

Details

at line line 24
MatchQueryBuilder with(Team|Player $participant, string $result = null)

Only include matches where a specific team/player played

Parameters

Team|Player $participant The team/player which played the matches
string $result The outcome of the matches (win, draw or loss)

Return Value

MatchQueryBuilder

at line line 76
$this groupByMonth()

Group results by day

Return Value

$this

at line line 89
array getSummary(Team $team)

Get a count for each month's matches

Parameters

Team $team The team in question

Return Value

array