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

ExpressionNotFound   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 15
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
ccs 2
cts 2
cp 1
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     ExpressionNotFound
7
 *
8
 * @package  Arcanedev\LaravelMetrics\Exceptions
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class ExpressionNotFound extends InvalidArgumentException
12
{
13
    /**
14
     * Make a new exception.
15
     *
16
     * @param  string  $name
17
     * @param  string  $driver
18
     *
19
     * @return \Arcanedev\LaravelMetrics\Exceptions\ExpressionNotFound
20
     */
21 8
    public static function make(string $name, string $driver)
22
    {
23 8
        return new static("Expression `{$name}` not found for `{$driver}` driver");
24
    }
25
}
26