mirror of
https://github.com/code-rhapsodie/ezmigrationbundle2.git
synced 2026-03-24 06:42:19 +01:00
18 lines
533 B
PHP
18 lines
533 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API;
|
|
|
|
interface KeyMatcherInterface extends MatcherInterface
|
|
{
|
|
/**
|
|
* Matches *one* item based on a unique key (id, identifier, etc... as long as it is a scalar value)
|
|
* @see MatcherInterface
|
|
*
|
|
* @param string|int $key
|
|
* @return mixed
|
|
* @throws \Kaliop\eZMigrationBundle\API\Exception\InvalidMatchConditionsException
|
|
* @throws \Kaliop\eZMigrationBundle\API\Exception\InvalidMatchResultsNumberException
|
|
*/
|
|
public function matchOneByKey($key);
|
|
}
|