Skip to content

Commit

Permalink
fix(specs): correct type for banners [skip-bc] (generated)
Browse files Browse the repository at this point in the history
  • Loading branch information
algolia-bot committed Oct 10, 2024
1 parent 7c6b0fd commit f961ab5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 464 deletions.
6 changes: 3 additions & 3 deletions lib/Model/Recommend/BannerImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BannerImage extends AbstractModel implements ModelInterface, \ArrayAccess,
* @var string[]
*/
protected static $modelTypes = [
'urls' => '\Algolia\AlgoliaSearch\Model\Recommend\BannerImageUrl',
'urls' => '\Algolia\AlgoliaSearch\Model\Recommend\BannerImageUrl[]',
'title' => 'string',
];

Expand Down Expand Up @@ -164,7 +164,7 @@ public function valid()
/**
* Gets urls.
*
* @return null|BannerImageUrl
* @return null|\Algolia\AlgoliaSearch\Model\Recommend\BannerImageUrl[]
*/
public function getUrls()
{
Expand All @@ -174,7 +174,7 @@ public function getUrls()
/**
* Sets urls.
*
* @param null|BannerImageUrl $urls urls
* @param null|\Algolia\AlgoliaSearch\Model\Recommend\BannerImageUrl[] $urls urls
*
* @return self
*/
Expand Down
226 changes: 0 additions & 226 deletions lib/Model/Recommend/Banners.php

This file was deleted.

6 changes: 3 additions & 3 deletions lib/Model/Recommend/Widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Widgets extends AbstractModel implements ModelInterface, \ArrayAccess, \Js
* @var string[]
*/
protected static $modelTypes = [
'banners' => '\Algolia\AlgoliaSearch\Model\Recommend\Banners',
'banners' => '\Algolia\AlgoliaSearch\Model\Recommend\Banner[]',
];

/**
Expand Down Expand Up @@ -156,7 +156,7 @@ public function valid()
/**
* Gets banners.
*
* @return null|Banners
* @return null|\Algolia\AlgoliaSearch\Model\Recommend\Banner[]
*/
public function getBanners()
{
Expand All @@ -166,7 +166,7 @@ public function getBanners()
/**
* Sets banners.
*
* @param null|Banners $banners banners
* @param null|\Algolia\AlgoliaSearch\Model\Recommend\Banner[] $banners banners defined in the merchandising studio for the given search
*
* @return self
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/Search/BannerImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BannerImage extends AbstractModel implements ModelInterface, \ArrayAccess,
* @var string[]
*/
protected static $modelTypes = [
'urls' => '\Algolia\AlgoliaSearch\Model\Search\BannerImageUrl',
'urls' => '\Algolia\AlgoliaSearch\Model\Search\BannerImageUrl[]',
'title' => 'string',
];

Expand Down Expand Up @@ -164,7 +164,7 @@ public function valid()
/**
* Gets urls.
*
* @return null|BannerImageUrl
* @return null|\Algolia\AlgoliaSearch\Model\Search\BannerImageUrl[]
*/
public function getUrls()
{
Expand All @@ -174,7 +174,7 @@ public function getUrls()
/**
* Sets urls.
*
* @param null|BannerImageUrl $urls urls
* @param null|\Algolia\AlgoliaSearch\Model\Search\BannerImageUrl[] $urls urls
*
* @return self
*/
Expand Down
Loading

0 comments on commit f961ab5

Please sign in to comment.