| 1 | <?php |
||
| 22 | class DataTablesSearch implements DataTablesSearchInterface { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Regex. |
||
| 26 | * |
||
| 27 | * @var bool |
||
| 28 | */ |
||
| 29 | private $regex; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Value. |
||
| 33 | * |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $value; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Constructor. |
||
| 40 | */ |
||
| 41 | public function __construct() { |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritDoc} |
||
| 48 | */ |
||
| 49 | public function getRegex(): bool { |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritDoc} |
||
| 55 | */ |
||
| 56 | public function getValue(): string { |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Set the regex. |
||
| 62 | * |
||
| 63 | * @param bool $regex The regex. |
||
| 64 | * @return DataTablesSearchInterface Returns this search. |
||
| 65 | */ |
||
| 66 | public function setRegex(bool $regex): DataTablesSearchInterface { |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Set the value. |
||
| 73 | * |
||
| 74 | * @param string $value The value. |
||
| 75 | * @return DataTablesSearchInterface Returns this search. |
||
| 76 | */ |
||
| 77 | public function setValue(string $value): DataTablesSearchInterface { |
||
| 81 | } |
||
| 82 |