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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
<?php
/**
* @author @jenschude <jens.schulze@commercetools.de>
*/
namespace Commercetools\Core\Model\Product;
use Commercetools\Core\Model\Common\JsonObject;
/**
* @package Commercetools\Core\Model\Product
* @method int getFrom()
* @method FacetRange setFrom(int $from = null)
* @method string getFromStr()
* @method FacetRange setFromStr(string $fromStr = null)
* @method int getTo()
* @method FacetRange setTo(int $to = null)
* @method string getToStr()
* @method FacetRange setToStr(string $toStr = null)
* @method int getCount()
* @method FacetRange setCount(int $count = null)
* @method int getTotal()
* @method FacetRange setTotal(int $total = null)
* @method int getMin()
* @method FacetRange setMin(int $min = null)
* @method int getMax()
* @method FacetRange setMax(int $max = null)
* @method int getMean()
* @method FacetRange setMean(int $mean = null)
* @method int getProductCount()
* @method FacetRange setProductCount(int $productCount = null)
*/
class FacetRange extends JsonObject
{
public function fieldDefinitions()
{
return [
"from" => [static::TYPE => 'int'],
"fromStr" => [static::TYPE => 'string'],
"to" => [static::TYPE => 'int'],
"toStr" => [static::TYPE => 'string'],
"count" => [static::TYPE => 'int'],
"total" => [static::TYPE => 'int'],
"min" => [static::TYPE => 'int'],
"max" => [static::TYPE => 'int'],
"mean" => [static::TYPE => 'int'],
'productCount' => [static::TYPE => 'int', static::OPTIONAL => true],
];
}
/**
* @deprecated use getCount instead - will be removed with version 3.0
* @return int
*/
public function getTotalCount()
{
return $this->getCount();
}
/**
* @deprecated use setCount instead - will be removed with version 3.0
* @param int $totalCount
* @return FacetRange
*/
public function setTotalCount($totalCount = null)
{
return $this->setCount($totalCount);
}
}