Source of file Indexer.php
Size: 0,776 Bytes - Last Modified: 2021-12-23T10:38:36+00:00
/var/www/docs.ssmods.com/process/src/src/Interfaces/Indexer.php
123456789101112131415161718192021222324252627282930313233 | <?php declare(strict_types = 1); /** * Created by PhpStorm. * User: gordon * Date: 25/3/2561 * Time: 17:01 น. */ namespace Suilven\FreeTextSearch\Interfaces; use SilverStripe\ORM\DataObject; // @phpcs:disable SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification interface Indexer { /** * Index a single data objecct */ public function index(DataObject $dataObject): void; /** @param string $newIndexName the name of the index */ public function setIndexName(string $newIndexName): void; // this is provided by the base indexer /* @return array<string, array<string, array|bool|float|int|string>> */ public function getIndexablePayload(\SilverStripe\ORM\DataObject $dataObject): array; } |