Файл: gapps/vendor/prettus/l5-repository/src/Prettus/Repository/Contracts/RepositoryCriteriaInterface.php
Строк: 33
<?php
namespace PrettusRepositoryContracts;
use IlluminateSupportCollection;
/**
* Interface RepositoryCriteriaInterface
* @package PrettusRepositoryContracts
*/
interface RepositoryCriteriaInterface
{
/**
* Push Criteria for filter the query
*
* @param $criteria
*
* @return $this
*/
public function pushCriteria($criteria);
/**
* Pop Criteria
*
* @param $criteria
*
* @return $this
*/
public function popCriteria($criteria);
/**
* Get Collection of Criteria
*
* @return Collection
*/
public function getCriteria();
/**
* Find data by Criteria
*
* @param CriteriaInterface $criteria
*
* @return mixed
*/
public function getByCriteria(CriteriaInterface $criteria);
/**
* Skip Criteria
*
* @param bool $status
*
* @return $this
*/
public function skipCriteria($status = true);
/**
* Reset all Criterias
*
* @return $this
*/
public function resetCriteria();
}