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

NotAnIntegerArgumentException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
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
    public function __construct($argument)
15
    {
16
        parent::__construct(
17
            sprintf(
18
                'Not an integer!, %s given.',
19
                gettype($argument)
20
            )
21
        );
22
    }
23
}
24