Public Access
Update interface with docblocks and a new namespace
This commit is contained in:
1 parent
0872868798
commit
9d5340327b
2 files changed
+22
-11
No files matched your search
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pcm\SearchBundle\Entity\Interface;
|
||||
|
||||
interface SearchableInterface
|
||||
{
|
||||
public function getSearchTitle(): string;
|
||||
public function getSearchValues(): array;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user