Test Failed
Branch develop (09cda0)
by Samson
03:06
created

ValidIntegerValidator::isValidInteger()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 6
nc 3
nop 0
1
<?php
2
3
namespace Andegna\Validator;
4
5
trait ValidIntegerValidator
6
{
7
    public function isValidInteger()
8
    {
9
        $args = func_get_args();
10
11
        foreach ($args as $arg) {
12
            if (!is_int($arg)) {
13
                return false;
14
            }
15
        }
16
17
        return true;
18
    }
19
}
20