Passed
Push — master ( 571167...66d9a1 )
by noitran
03:34
created

IntCriteria::setValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Noitran\Repositories\Criteria\Support;
4
5
use Noitran\Repositories\Contracts\Criteria\FilterCriteriaInterface;
6
7
/**
8
 * Class IntCriteria
9
 */
10
class IntCriteria extends AbstractFilterCriteria
11
{
12
    /**
13
     * @param $value
14
     *
15
     * @return FilterCriteriaInterface
16
     */
17
    public function setValue($value): FilterCriteriaInterface
18
    {
19
        $this->value = (int) $value;
20
21
        return $this;
22
    }
23
}
24