IndexerInterface.php
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
namespace Drupal\drupalmoduleupgrader;
use Pharborist\NodeInterface;
/**
* Interface for plugins which can scan a target module to collect information
* about what it contains. Indexers are always run before other plugin types,
* and all available indexers are always run. All information collected by
* indexers is available to the other plugin types via TargetInterface's
* getIndexer() method.
*/
interface IndexerInterface {
public function bind(TargetInterface $module);
public function build();
public function clear();
public function destroy();
public function has($identifier);
public function hasAny(array $identifiers);
public function hasAll(array $identifiers);
public function addFile($path);
public function add(NodeInterface $node);
public function deleteFile($path);
public function delete($identifier);
public function get($identifier);
public function getMultiple(array $identifiers);
public function getAll();
public function getFields();
public function getQuery(array $fields = []);
}