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

Search::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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