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 Query
{
/**
* @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;
* @var array $filter
protected $filter;
* Get $countTotal
*
* @return bool
public function isCountTotal(): bool
return $this->countTotal;
}
* Set $countTotal
* @return self
public function countTotal()
$this->countTotal = true;
return $this;
* Get $withMeta
public function isWithMeta()
return $this->withMeta;
* Set $withMeta
public function withMeta()
$this->withMeta = true;
* Get $select
* @return mixed
public function getSelect()
return $this->select;
* Set $select
* @param mixed $select
public function select($select)
$this->select = $select;
* Get $offset
* @return integer
public function getOffset(): int
return $this->offset;
* Set $offset
* @param integer $offset
public function offset(int $offset)
$this->offset = $offset;
* Get $limit
public function getLimit(): int
return $this->limit;
* Set $limit
* @param integer $limit
public function limit(int $limit)
$this->limit = $limit;
* Get $orderBy
* @return array
public function getOrderBy()
return $this->orderBy;
* Set $orderBy
* @param array $orderBy $orderBy
public function orderBy(array $orderBy)
$this->orderBy = $orderBy;
* Get $filter
public function getWhere()
return $this->filter;
* Set $filter
* @param array $filter $filter
public function where(array $filter)
$this->filter = $filter;