Files
ezmigrationbundle/API/SortingMatcherInterface.php
2019-04-03 14:34:12 +00:00

30 lines
843 B
PHP

<?php
namespace Kaliop\eZMigrationBundle\API;
interface SortingMatcherInterface extends MatcherInterface
{
/**
* Returns an array of items, or an array-like object, with all items which satisfy the conditions $conditions
*
* @param array $conditions
* @param array $sort
* @param int $offset
* @param int $limit
* @return array|\ArrayObject
*/
public function match(array $conditions, array $sort = array(), $offset = 0, $limit = 0);
/**
* Like match, but will throw an exception if there are 0 or more than 1 items matching
*
* @param array $conditions
* @param array $sort
* @param int $offset
* @param int $limit
* @return mixed
* @throws \Exception
*/
public function matchOne(array $conditions, array $sort = array(), $offset = 0);
}