Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
15 | abstract class Indexer implements \Suilven\FreeTextSearch\Interfaces\Indexer |
||
16 | { |
||
17 | /** @var string */ |
||
18 | protected $index; |
||
19 | |||
20 | /** |
||
21 | * Index a single data object |
||
22 | */ |
||
23 | abstract public function index(DataObject $dataObject): void; |
||
24 | |||
25 | |||
26 | /** @param string $newIndex the new index name */ |
||
27 | public function setIndex(string $newIndex): void |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param \SilverStripe\ORM\DataObject $dataObject |
||
34 | * @return array |
||
35 | */ |
||
36 | protected function getIndexablePayload(\SilverStripe\ORM\DataObject $dataObject): array |
||
43 |