wikimedia/mediawiki-extensions-Wikibase

View on GitHub
lib/packages/wikibase/data-model-services/src/Term/ItemTermStoreWriter.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Wikibase\DataModel\Services\Term;

use Wikibase\DataModel\Entity\ItemId;
use Wikibase\DataModel\Term\Fingerprint;

/**
 * @license GPL-2.0-or-later
 */
interface ItemTermStoreWriter {

    /**
     * Updates the stored terms for the specified item.
     * @throws TermStoreException
     */
    public function storeTerms( ItemId $itemId, Fingerprint $terms );

    /**
     * @throws TermStoreException
     */
    public function deleteTerms( ItemId $itemId );

}