for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Shopware\Core\Content\Cms\SalesChannel\Struct;
use Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity;
use Shopware\Core\Content\Property\PropertyGroupCollection;
use Shopware\Core\Framework\Struct\Struct;
/**
* @internal (flag:FEATURE_NEXT_10078)
*/
class BuyBoxStruct extends Struct
{
* @var SalesChannelProductEntity|null
protected $product;
* @var PropertyGroupCollection|null
protected $configuratorSettings;
* @var string|null
protected $productId;
* @var int
protected $totalReviews;
public function getProduct(): ?SalesChannelProductEntity
return $this->product;
}
public function getConfiguratorSettings(): ?PropertyGroupCollection
return $this->configuratorSettings;
public function setConfiguratorSettings(PropertyGroupCollection $configuratorSettings): void
$this->configuratorSettings = $configuratorSettings;
public function setProduct(SalesChannelProductEntity $product): void
$this->product = $product;
public function getProductId(): ?string
return $this->productId;
public function setProductId(string $productId): void
$this->productId = $productId;
public function getTotalReviews(): ?int
return $this->totalReviews;
public function setTotalReviews(int $totalReviews): void
$this->totalReviews = $totalReviews;
public function getApiAlias(): string
return 'cms_buy_box';