Completed
Push — master ( 3d6a71...4fcc05 )
by Peter
05:12
created

IncorrectPageNumberException   A

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 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A incorrect() 0 4 1
1
<?php
2
/**
3
 * GpsLab component.
4
 *
5
 * @author    Peter Gribanov <[email protected]>
6
 * @copyright Copyright (c) 2011, Peter Gribanov
7
 * @license   http://opensource.org/licenses/MIT
8
 */
9
10
namespace GpsLab\Bundle\PaginationBundle\Exception;
11
12
class IncorrectPageNumberException extends \InvalidArgumentException
13
{
14
    /**
15
     * @param mixed $current_page
16
     *
17
     * @return static
18
     */
19 1
    public static function incorrect($current_page)
20
    {
21 1
        return new static(sprintf('Incorrect "%s" page number.', $current_page));
22
    }
23
}
24