Skip to content

Commit f961ab5

Browse files
committed
fix(specs): correct type for banners [skip-bc] (generated)
algolia/api-clients-automation#3939 Co-authored-by: algolia-bot <[email protected]>
1 parent 7c6b0fd commit f961ab5

File tree

6 files changed

+12
-464
lines changed

6 files changed

+12
-464
lines changed

lib/Model/Recommend/BannerImage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class BannerImage extends AbstractModel implements ModelInterface, \ArrayAccess,
2222
* @var string[]
2323
*/
2424
protected static $modelTypes = [
25-
'urls' => '\Algolia\AlgoliaSearch\Model\Recommend\BannerImageUrl',
25+
'urls' => '\Algolia\AlgoliaSearch\Model\Recommend\BannerImageUrl[]',
2626
'title' => 'string',
2727
];
2828

@@ -164,7 +164,7 @@ public function valid()
164164
/**
165165
* Gets urls.
166166
*
167-
* @return null|BannerImageUrl
167+
* @return null|\Algolia\AlgoliaSearch\Model\Recommend\BannerImageUrl[]
168168
*/
169169
public function getUrls()
170170
{
@@ -174,7 +174,7 @@ public function getUrls()
174174
/**
175175
* Sets urls.
176176
*
177-
* @param null|BannerImageUrl $urls urls
177+
* @param null|\Algolia\AlgoliaSearch\Model\Recommend\BannerImageUrl[] $urls urls
178178
*
179179
* @return self
180180
*/

lib/Model/Recommend/Banners.php

Lines changed: 0 additions & 226 deletions
This file was deleted.

lib/Model/Recommend/Widgets.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Widgets extends AbstractModel implements ModelInterface, \ArrayAccess, \Js
2222
* @var string[]
2323
*/
2424
protected static $modelTypes = [
25-
'banners' => '\Algolia\AlgoliaSearch\Model\Recommend\Banners',
25+
'banners' => '\Algolia\AlgoliaSearch\Model\Recommend\Banner[]',
2626
];
2727

2828
/**
@@ -156,7 +156,7 @@ public function valid()
156156
/**
157157
* Gets banners.
158158
*
159-
* @return null|Banners
159+
* @return null|\Algolia\AlgoliaSearch\Model\Recommend\Banner[]
160160
*/
161161
public function getBanners()
162162
{
@@ -166,7 +166,7 @@ public function getBanners()
166166
/**
167167
* Sets banners.
168168
*
169-
* @param null|Banners $banners banners
169+
* @param null|\Algolia\AlgoliaSearch\Model\Recommend\Banner[] $banners banners defined in the merchandising studio for the given search
170170
*
171171
* @return self
172172
*/

lib/Model/Search/BannerImage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class BannerImage extends AbstractModel implements ModelInterface, \ArrayAccess,
2222
* @var string[]
2323
*/
2424
protected static $modelTypes = [
25-
'urls' => '\Algolia\AlgoliaSearch\Model\Search\BannerImageUrl',
25+
'urls' => '\Algolia\AlgoliaSearch\Model\Search\BannerImageUrl[]',
2626
'title' => 'string',
2727
];
2828

@@ -164,7 +164,7 @@ public function valid()
164164
/**
165165
* Gets urls.
166166
*
167-
* @return null|BannerImageUrl
167+
* @return null|\Algolia\AlgoliaSearch\Model\Search\BannerImageUrl[]
168168
*/
169169
public function getUrls()
170170
{
@@ -174,7 +174,7 @@ public function getUrls()
174174
/**
175175
* Sets urls.
176176
*
177-
* @param null|BannerImageUrl $urls urls
177+
* @param null|\Algolia\AlgoliaSearch\Model\Search\BannerImageUrl[] $urls urls
178178
*
179179
* @return self
180180
*/

0 commit comments

Comments
 (0)