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 27 28 29 30
<?php
/**
* @author @jenschude <jens.schulze@commercetools.de>
*/
namespace Commercetools\Core\Model\Product;
use Commercetools\Core\Model\Common\JsonObject;
/**
* @package Commercetools\Core\Model\Product
* @method string getTerm()
* @method FacetTerm setTerm(string $term = null)
* @method int getCount()
* @method FacetTerm setCount(int $count = null)
* @method int getProductCount()
* @method FacetTerm setProductCount(int $productCount = null)
*/
class FacetTerm extends JsonObject
{
public function fieldDefinitions()
{
return [
'term' => [static::TYPE => 'string'],
'count' => [static::TYPE => 'int'],
'productCount' => [static::TYPE => 'int', static::OPTIONAL => true],
];
}
}