NotAnIntegerArgumentException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace Geezify\Exception;
4
5
use InvalidArgumentException;
6
7
/**
8
 * Class NotAnIntegerArgumentException.
9
 *
10
 * @author Sam As End <4sam21{at}gmail.com>
11
 */
12
class NotAnIntegerArgumentException extends InvalidArgumentException
13
{
14 8
    public function __construct($argument)
15
    {
16 8
        parent::__construct(
17 8
            sprintf(
18 8
                'Not an integer!, %s given.',
19 8
                gettype($argument)
20
            )
21
        );
22 8
    }
23
}
24