Completed
Push — master ( caad92...bf4c7a )
by Peter
05:39
created

OutOfWeekIntervalException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 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\Week;
11
12
use GpsLab\Component\Interval\Exception\OutOfIntervalException;
13
14
class OutOfWeekIntervalException extends OutOfIntervalException
15
{
16
    /**
17
     * @param WeekIntervalPoint $point
18
     * @param WeekInterval $interval
19
     *
20
     * @return self
21
     */
22
    public static function create(WeekIntervalPoint $point, WeekInterval $interval)
23
    {
24
        return new static(sprintf('Week "%s" must be included in interval "%s".', $point, $interval));
25
    }
26
}
27