mirror of
https://github.com/jbcr/ezmigrationbundle.git
synced 2026-03-25 17:32:05 +01:00
27 lines
633 B
PHP
27 lines
633 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API;
|
|
|
|
interface MatcherInterface
|
|
{
|
|
const MATCH_ALL = 'all';
|
|
const MATCH_NOT = 'not';
|
|
|
|
/**
|
|
* Returns an array of items, or an array-like object, whith all items which satisfy the conditions $conditions
|
|
*
|
|
* @param array $conditions
|
|
* @return array|\ArrayObject
|
|
*/
|
|
public function match(array $conditions);
|
|
|
|
/**
|
|
* Like match, but will throw an exception if there are 0 or more than 1 items matching
|
|
*
|
|
* @param array $conditions
|
|
* @return mixed
|
|
* @throws \Exception
|
|
*/
|
|
public function matchOne(array $conditions);
|
|
}
|