Skip to content

Commit

Permalink
add team_size_range, datatype unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekz committed Mar 29, 2021
1 parent 38c36b7 commit 7bfca60
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/Challonge/DTO/Tournament.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Tournament extends DataTransferObject
public int $participants_count;
public bool $group_stages_enabled;
public bool $allow_participant_match_reporting;
public $teams;
public $teams;
public $check_in_duration;
public ?string $start_at;
public ?string $started_checking_in_at;
Expand Down Expand Up @@ -97,6 +97,7 @@ class Tournament extends DataTransferObject
public bool $participants_swappable;
public bool $team_convertable;
public bool $group_stages_were_started;
public $team_size_range;

/**
* Start a tournament, opening up first round matches for score reporting.
Expand Down
3 changes: 2 additions & 1 deletion tests/stubs/tournament_create.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"game_name":"Crash Team Racing",
"participants_swappable":false,
"team_convertable":false,
"group_stages_were_started":false
"group_stages_were_started":false,
"team_size_range":null
}
}
3 changes: 2 additions & 1 deletion tests/stubs/tournament_fetch.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"game_name":"Crash Team Racing",
"participants_swappable":false,
"team_convertable":false,
"group_stages_were_started":false
"group_stages_were_started":false,
"team_size_range":null
}
}
3 changes: 2 additions & 1 deletion tests/stubs/tournament_finalize1.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"game_name":"Crash Team Racing",
"participants_swappable":false,
"team_convertable":false,
"group_stages_were_started":false
"group_stages_were_started":false,
"team_size_range":null
}
}
3 changes: 2 additions & 1 deletion tests/stubs/tournament_finalize2.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"game_name":"Crash Team Racing",
"participants_swappable":false,
"team_convertable":false,
"group_stages_were_started":false
"group_stages_were_started":false,
"team_size_range":null
}
}
6 changes: 4 additions & 2 deletions tests/stubs/tournament_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
"game_name":"Crash Team Racing",
"participants_swappable":false,
"team_convertable":false,
"group_stages_were_started":false
"group_stages_were_started":false,
"team_size_range":null
}
},
{
Expand Down Expand Up @@ -186,7 +187,8 @@
"game_name":"Crash Team Racing",
"participants_swappable":false,
"team_convertable":false,
"group_stages_were_started":false
"group_stages_were_started":false,
"team_size_range":null
}
}
]
3 changes: 2 additions & 1 deletion tests/stubs/tournament_start.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"game_name":"Crash Team Racing",
"participants_swappable":false,
"team_convertable":false,
"group_stages_were_started":false
"group_stages_were_started":false,
"team_size_range":null
}
}

0 comments on commit 7bfca60

Please sign in to comment.