lib/packages/wikibase/data-model-services/src/Diff/EntityPatcherStrategy.php
<?php
namespace Wikibase\DataModel\Services\Diff;
use InvalidArgumentException;
use Wikibase\DataModel\Entity\EntityDocument;
/**
* @since 1.0
*
* @license GPL-2.0-or-later
* @author Jeroen De Dauw < jeroendedauw@gmail.com >
*/
interface EntityPatcherStrategy {
/**
* @param string $entityType
*
* @return bool
*/
public function canPatchEntityType( $entityType );
/**
* @param EntityDocument $entity
* @param EntityDiff $patch
*
* @throws InvalidArgumentException
*/
public function patchEntity( EntityDocument $entity, EntityDiff $patch );
}