introduce dedicated exceptions for matchers

This commit is contained in:
gggeek
2019-04-03 16:30:12 +00:00
parent c08d494ee6
commit ece79240a2
14 changed files with 109 additions and 56 deletions

View File

@@ -12,6 +12,8 @@ interface SortingMatcherInterface extends MatcherInterface
* @param int $offset
* @param int $limit
* @return array|\ArrayObject
* @throws \Kaliop\eZMigrationBundle\API\Exception\InvalidMatchConditionsException
* @throws \Kaliop\eZMigrationBundle\API\Exception\InvalidSortConditionsException
*/
public function match(array $conditions, array $sort = array(), $offset = 0, $limit = 0);
@@ -23,7 +25,9 @@ interface SortingMatcherInterface extends MatcherInterface
* @param int $offset
* @param int $limit
* @return mixed
* @throws \Exception
* @throws \Kaliop\eZMigrationBundle\API\Exception\InvalidMatchConditionsException
* @throws \Kaliop\eZMigrationBundle\API\Exception\InvalidSortConditionsException
* @throws \Kaliop\eZMigrationBundle\API\Exception\InvalidMatchResultsNumberException
*/
public function matchOne(array $conditions, array $sort = array(), $offset = 0);
}