From cb196ebd79b84433fc119bf8da14905b78c729ff Mon Sep 17 00:00:00 2001 From: robo220 Date: Mon, 10 Jan 2022 12:48:36 +0000 Subject: [PATCH] fix: Seed param should only be available for single frontpage (#73) --- src/Entity/Frontpage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Entity/Frontpage.php b/src/Entity/Frontpage.php index 36317d9..ed77f0c 100644 --- a/src/Entity/Frontpage.php +++ b/src/Entity/Frontpage.php @@ -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 @@ -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