forked from gesdinet/MetronicDatatableBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearch.php
More file actions
43 lines (38 loc) · 984 Bytes
/
Search.php
File metadata and controls
43 lines (38 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/*
* This file is part of the Gesdinet MetronicDataTableBundle package.
*
* (c) Gesdinet <marcos@gesdinet.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gesdinet\MetronicDataTableBundle;
/**
* Search parameters as part of DataTables request.
*
* @see https://keenthemes.com/metronic/documentation.html#sec14
*
* @property string $value Search value.
* @property bool $regex Whether the search value should be treated as a regular expression for advanced searching.
*/
class Search extends ValueObject implements \JsonSerializable
{
protected $value;
/**
* Initializing constructor.
*/
public function __construct(string $value = null)
{
$this->value = $value;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize(): array
{
return [
'value' => $this->value,
];
}
}