| 1 | <?php  | 
            ||
| 11 | abstract class Searchable  | 
            ||
| 12 | { | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * Will construct a new searchable instance that is not searchable and is not regex searchable.  | 
            ||
| 16 | * @return NoneSearchable  | 
            ||
| 17 | */  | 
            ||
| 18 | public static function NONE()  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * Will construct a new searchable that will allow normal searching but not regex searching.  | 
            ||
| 25 | * @return DefaultSearchable  | 
            ||
| 26 | */  | 
            ||
| 27 | public static function NORMAL()  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * Will return a new searchable that will allow normal searching which also allows regex searching.  | 
            ||
| 34 | * @return RegexSearchable  | 
            ||
| 35 | */  | 
            ||
| 36 | public static function REGEX()  | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * Will return a new searchable that will allow for an exact match.  | 
            ||
| 43 | * @return ExactSearchable  | 
            ||
| 44 | */  | 
            ||
| 45 | public static function EXACT()  | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * Will return if this configuration allows searching on the column.  | 
            ||
| 52 | * @return bool  | 
            ||
| 53 | */  | 
            ||
| 54 | abstract public function isSearchable();  | 
            ||
| 55 | }  |