NotAnIntegerArgumentException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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