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

ValidIntegerValidator   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isValidInteger() 0 12 3
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