Passed
Push — master ( f17b13...8bf1e0 )
by Radu
01:33
created

Search   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 3 1
1
<?php
2
namespace WebServCo\Framework\DataTables;
3
4
class Search
5
{
6
    protected $value;
7
    protected $regex;
8
9
    public function __construct($value, $regex)
10
    {
11
        $this->value = $value;
12
        $this->regex = (bool) $regex;
13
    }
14
15
    public function getValue()
16
    {
17
        return $this->value;
18
    }
19
}
20