Skip to content

Commit

Permalink
Merge branch 'feature/kvk-v2' of /~https://github.com/vormkracht10/kvk-api
Browse files Browse the repository at this point in the history
 into feature/kvk-v2
  • Loading branch information
Baspa committed Aug 30, 2024
2 parents a8296f1 + 217c552 commit b4d1134
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function search(string $search, array $params = [])
$queryParams = array_merge([
'naam' => $search,
'pagina' => $this->page ?? 1,
'resultatenPerPagina' => $this->resultsPerPage ?? 10
'resultatenPerPagina' => $this->resultsPerPage ?? 10,
], $params);
$data = $this->getData($queryParams);

Expand Down Expand Up @@ -67,12 +67,14 @@ private function decodeJson(string $json)
public function setPage(int $page)
{
$this->page = $page;

return $this;
}

public function setResultsPerPage(int $resultsPerPage)
{
$this->resultsPerPage = $resultsPerPage;

return $this;
}

Expand Down

0 comments on commit b4d1134

Please sign in to comment.