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

ExpressionNotFound::make()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 2
crap 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