Completed
Push — master ( 2f74f3...29426d )
by Samson
02:55
created

NotAnIntegerArgumentException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 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
    public function __construct($argument)
15
    {
16
        parent::__construct(
17
            sprintf(
18
                'Not an integer!, %s given.',
19
                gettype($argument)
20
            )
21
        );
22
    }
23
}
24