Files
ezmigrationbundle/API/KeyMatcherInterface.php
2019-04-03 16:30:12 +00:00

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);
}