From 509eec8153e201c8f5f6fd40e96797ea8897ba9c Mon Sep 17 00:00:00 2001 From: Joe Saunderson Date: Fri, 21 Jan 2022 22:12:08 +0000 Subject: [PATCH] Support group ID --- src/SoccerClient.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/SoccerClient.php b/src/SoccerClient.php index 9459a34..7862d86 100644 --- a/src/SoccerClient.php +++ b/src/SoccerClient.php @@ -118,6 +118,17 @@ public function setMarkets(array $marketIds) return $this; } + /** + * @param int $groupId + * @return SoccerClient + */ + public function setGroup(int $groupId): self + { + // Add group ID + $this->query['group_id'] = $groupId; + return $this; + } + /** * @param int $page * @return $this