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 | |
3 | /** |
4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License |
6 | * as published by the Free Software Foundation; under version 2 |
7 | * of the License (non-upgradable). |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program; if not, write to the Free Software |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | * |
18 | * Copyright (c) 2020 (original work) Open Assessment Technologies SA; |
19 | */ |
20 | |
21 | declare(strict_types=1); |
22 | |
23 | namespace oat\tao\model\search\index; |
24 | |
25 | use Throwable; |
26 | |
27 | interface IndexUpdaterInterface |
28 | { |
29 | public const SERVICE_ID = 'tao/IndexUpdater'; |
30 | |
31 | /** |
32 | * @param array $properties |
33 | * |
34 | * @throws Throwable |
35 | */ |
36 | public function updatePropertiesName(array $properties): void; |
37 | |
38 | /** |
39 | * @param array $property |
40 | * |
41 | * @throws Throwable |
42 | */ |
43 | public function deleteProperty(array $property): void; |
44 | |
45 | /** |
46 | * @param string $typeOrId |
47 | * @param array $parentClasses |
48 | * @param string $propertyName |
49 | * @param array $value |
50 | */ |
51 | public function updatePropertyValue( |
52 | string $typeOrId, |
53 | array $parentClasses, |
54 | string $propertyName, |
55 | array $value |
56 | ): void; |
57 | |
58 | /** |
59 | * @param string $class |
60 | * |
61 | * @return bool |
62 | */ |
63 | public function hasClassSupport(string $class): bool; |
64 | } |