Skip to content

Commit

Permalink
fix: Seed param should only be available for single frontpage (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
robo220 committed Jan 10, 2022
1 parent 0de8cab commit cb196eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Entity/Frontpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class Frontpage extends Entity
* @throws UsageException
* @throws \Bookboon\Api\Exception\ApiDecodeException
*/
public static function get(Bookboon $bookboon, array $bookTypes = ['professional'], ?int $limit = null, ?int $seed = null) : BookboonResponse
public static function get(Bookboon $bookboon, array $bookTypes = ['professional'], ?int $limit = null) : BookboonResponse
{
$bResponse = $bookboon->rawRequest(
'/v1/frontpage',
['bookType' => implode(',', $bookTypes), 'limit' => $limit, 'seed' => $seed],
['bookType' => implode(',', $bookTypes), 'limit' => $limit],
ClientInterface::HTTP_GET,
true,
Frontpage::class
Expand All @@ -51,11 +51,11 @@ public static function get(Bookboon $bookboon, array $bookTypes = ['professional
* @throws \Bookboon\Api\Exception\ApiDecodeException
* @throws \Bookboon\Api\Exception\EntityDataException
*/
public static function getBySlug(Bookboon $bookboon, string $slug, array $bookTypes = ['professional'], ?int $limit = null) : BookboonResponse
public static function getBySlug(Bookboon $bookboon, string $slug, array $bookTypes = ['professional'], ?int $limit = null, ?int $seed = null) : BookboonResponse
{
$bResponse = $bookboon->rawRequest(
"/v1/frontpage/$slug",
['bookType' => join(',', $bookTypes), 'limit' => $limit],
['bookType' => join(',', $bookTypes), 'limit' => $limit, 'seed' => $seed],
ClientInterface::HTTP_GET,
true,
Frontpage::class
Expand Down

0 comments on commit cb196eb

Please sign in to comment.