InvalidIntervalFormatException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 8 1
1
<?php
2
/**
3
 * GpsLab component.
4
 *
5
 * @author    Peter Gribanov <[email protected]>
6
 * @copyright Copyright (c) 2016, Peter Gribanov
7
 * @license   http://opensource.org/licenses/MIT
8
 */
9
10
namespace GpsLab\Component\Interval\Exception;
11
12
class InvalidIntervalFormatException extends \InvalidArgumentException
13
{
14
    /**
15
     * @param string $expected
16
     * @param string $actual
17
     *
18
     * @return self
19
     */
20
    public static function create($expected, $actual)
21
    {
22
        return new self(sprintf(
23
            'The example of expected interval format is "%s". Actual format is "%s".',
24
            $expected,
25
            $actual
26
        ));
27
    }
28
}
29