3
0

Update interface with docblocks and a new namespace

This commit is contained in:
brabli
2026-05-07 16:33:40 +01:00
parent 0872868798
commit 9d5340327b
2 changed files with 22 additions and 11 deletions
@@ -1,11 +0,0 @@
<?php
declare(strict_types=1);
namespace Pcm\SearchBundle\Entity\Interface;
interface SearchableInterface
{
public function getSearchTitle(): string;
public function getSearchValues(): array;
}
+22
View File
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace Pcm\SearchBundle\Interface;
interface SearchableInterface
{
/**
* This entity's human-readable title to be shown in search results.
*/
public function getSearchTitle(): string;
/**
* The string values to index for this entity
*
* Each value is concatenated into the fulltext index, so include any field a user might search by.
*
* @return string[]
*/
public function getSearchValues(): array;
}