| Total Complexity | 2 |
| Total Lines | 22 |
| 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 | public function __construct(string $value = null, bool $regex = false) |
||
| 33 | { |
||
| 34 | $this->value = $value; |
||
| 35 | 1 | $this->regex = $regex; |
|
| 36 | } |
||
| 37 | 1 | ||
| 38 | 1 | /** |
|
| 39 | 1 | * {@inheritdoc} |
|
| 40 | */ |
||
| 41 | public function jsonSerialize(): array |
||
| 46 | 1 | ]; |
|
| 47 | } |
||
| 49 |