Completed
Push — master ( 0f05a9...994973 )
by ARCANEDEV
06:19
created

InvalidTrendUnitException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 4 1
1
<?php namespace Arcanedev\LaravelMetrics\Exceptions;
2
3
use InvalidArgumentException;
4
5
/**
6
 * Class     InvalidTrendUnitException
7
 *
8
 * @package  Arcanedev\LaravelMetrics\Exceptions
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class InvalidTrendUnitException extends InvalidArgumentException
12
{
13
    /**
14
     * Make a new exception.
15
     *
16
     * @param  string  $unit
17
     *
18
     * @return \Arcanedev\LaravelMetrics\Exceptions\InvalidTrendUnitException
19
     */
20
    public static function make(string $unit)
21
    {
22
        return new static("Invalid trend unit provided [{$unit}].");
23
    }
24
}
25