Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace WikibaseQuality\ConstraintReport;
4
5use Wikibase\DataModel\Entity\NumericPropertyId;
6use Wikimedia\Rdbms\DBUnexpectedError;
7
8/**
9 * @license GPL-2.0-or-later
10 */
11interface ConstraintStore {
12
13    /**
14     * @param Constraint[] $constraints
15     *
16     * @throws DBUnexpectedError
17     */
18    public function insertBatch( array $constraints );
19
20    /**
21     * Delete all constraints for the property ID.
22     *
23     * @param NumericPropertyId $propertyId
24     *
25     * @throws DBUnexpectedError
26     */
27    public function deleteForProperty( NumericPropertyId $propertyId );
28
29}