From 1ad13ef9c88c3b6fe689ede67b02676ecddf8e78 Mon Sep 17 00:00:00 2001 From: ropczan Date: Wed, 5 Jan 2022 15:47:28 +0100 Subject: [PATCH] ANS-9289 used maxNumResults param in service --- src/Service/SearchByImageClient.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Service/SearchByImageClient.php b/src/Service/SearchByImageClient.php index 627fb87..d4d57a6 100644 --- a/src/Service/SearchByImageClient.php +++ b/src/Service/SearchByImageClient.php @@ -40,10 +40,11 @@ public function searchByFeature( string $featureId, string $label, ?string $gender = null, - ?string $filters = null + ?string $filters = null, + ?int $maxNumResults = null ): SearchByFeatureResponse { return SearchByFeatureResponse::fromArray( - $this->request(self::SEARCH_BY_FEATURE, new SearchByFeatureRequest($featureId, $label, $gender, $filters)) + $this->request(self::SEARCH_BY_FEATURE, new SearchByFeatureRequest($featureId, $label, $gender, $filters, $maxNumResults)) ); } }