| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 16 | abstract class Indexer implements \Suilven\FreeTextSearch\Interfaces\Indexer |
||
| 17 | { |
||
| 18 | /** @var string */ |
||
| 19 | protected $indexName; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Index a single data object |
||
| 23 | */ |
||
| 24 | abstract public function index(DataObject $dataObject): void; |
||
| 25 | |||
| 26 | |||
| 27 | /** @param string $newIndexName the new index name */ |
||
| 28 | public function setIndexName(string $newIndexName): void |
||
| 29 | { |
||
| 30 | $this->indexName = $newIndexName; |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | /** @return array<string, array<string,string|int|float|bool>> */ |
||
| 35 | public function getIndexablePayload(\SilverStripe\ORM\DataObject $dataObject): array |
||
| 60 | } |
||
| 61 | } |
||
| 62 |