for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Prozorov\Repositories;
class Parameters
{
/**
* @var integer $limit
*/
protected $limit = 20;
* @var integer $offset
protected $offset = 0;
* @var mixed $select
protected $select = null;
* @var bool $withMeta
protected $withMeta = false;
* @var bool $countTotal
protected $countTotal = false;
* @var array $orderBy
protected $orderBy;
* Get $countTotal
*
* @return bool
public function isCountTotal(): bool
return $this->countTotal;
}
* Set $countTotal
* @param bool $countTotal
* @return self
public function countTotal(bool $countTotal)
$this->countTotal = $countTotal;
return $this;
* Get $withMeta
public function isWithMeta()
return $this->withMeta;
* Set $withMeta
* @param bool $withMeta
public function withMeta(bool $withMeta)
$this->withMeta = $withMeta;
* Get $select
* @return mixed
public function getSelect()
return $this->select;
* Set $select
* @param mixed $select
public function setSelect($select)
$this->select = $select;
* Get $offset
* @return integer
public function getOffset(): int
return $this->offset;
* Set $offset
* @param integer $offset
public function setOffset(int $offset)
$this->offset = $offset;
* Get $limit
public function getLimit(): int
return $this->limit;
* Set $limit
* @param integer $limit
public function setLimit(int $limit)
$this->limit = $limit;
* Get $orderBy
* @return array
public function getOrderBy()
return $this->orderBy;
* Set $orderBy
* @param array $orderBy $orderBy
public function setOrderBy(array $orderBy)
$this->orderBy = $orderBy;