for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OpenSkill\Datatable\Columns\Searchable;
/**
* Class Searchable
* @package OpenSkill\Datatable\Columns
*
* Enum class that indicates the search option for the column
*/
abstract class Searchable
{
* Will construct a new searchable instance that is not searchable and is not regex searchable.
* @return NoneSearchable
public static function NONE()
return new NoneSearchable();
}
* Will construct a new searchable that will allow normal searching but not regex searching.
* @return DefaultSearchable
public static function NORMAL()
return new DefaultSearchable();
* Will return a new searchable that will allow normal searching which also allows regex searching.
* @return RegexSearchable
public static function REGEX()
return new RegexSearchable();
* Will return a new searchable that will allow for an exact match.
* @return ExactSearchable
public static function EXACT()
return new ExactSearchable();
* Will return a new searchable that is not implemented.
* This is used for unit testing. Nothing to see here.
* @return NotImplementedSearchable
public static function NOTIMPLEMENTED()
return new NotImplementedSearchable();
* Will return if this configuration allows searching on the column.
* @return bool
abstract public function isSearchable();