Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class Search extends ValueObject implements \JsonSerializable |
||
25 | { |
||
26 | protected $value; |
||
27 | protected $regex; |
||
28 | |||
29 | /** |
||
30 | * Initializing constructor. |
||
31 | * |
||
32 | * @param null|string $value |
||
33 | * @param bool $regex |
||
34 | */ |
||
35 | 1 | public function __construct(string $value = null, bool $regex = false) |
|
36 | { |
||
37 | 1 | $this->value = $value; |
|
38 | 1 | $this->regex = $regex; |
|
39 | 1 | } |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | 1 | public function jsonSerialize() |
|
51 | ]; |
||
52 | } |
||
54 |