1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php
namespace Commercetools\Core\Model\ProductSelection;
use Commercetools\Core\Model\Common\JsonObject;
use Commercetools\Core\Model\Product\ProductReference;
/**
* @package Commercetools\Core\Model\ProductSelection
* @link https://docs.commercetools.com/api/projects/product-selections#productselectionassignment
* @method ProductReference getProduct()
* @method ProductSelectionAssignment setProduct(ProductReference $product = null)
* @method ProductSelectionReference getProductSelection()
* @method ProductSelectionAssignment setProductSelection(ProductSelectionReference $productSelection = null)
*/
class ProductSelectionAssignment extends JsonObject
{
public function fieldDefinitions()
{
return [
'product' => [static::TYPE => ProductReference::class],
'productSelection' => [static::TYPE => ProductSelectionReference::class],
];
}
}