Skip to content

Commit

Permalink
Merge branch 'main' into tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Oct 5, 2024
2 parents 4cf59e4 + 2ff3e38 commit 47ab868
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/OddsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public function getApiEndpoint(): string
return $this->apiEndpoint;
}

public function getParams(): array
{
return $this->params;
}

protected function get($endpoint): Response
{
try {
Expand Down Expand Up @@ -148,7 +153,7 @@ public function setBookmakers(mixed $bookmakers): self
$bookmakerString = http_build_query($bookmakers, '', ',');
}

$this->params['markets'] = $bookmakerString ?? $bookmakers;
$this->params['bookmakers'] = $bookmakerString ?? $bookmakers;

return $this;
}
Expand Down

0 comments on commit 47ab868

Please sign in to comment.