mirror of
https://github.com/JBDevLabs/ezmigrationbundle.git
synced 2026-03-24 08:52:16 +01:00
30 lines
843 B
PHP
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);
|
|
}
|