Passed
Pull Request — master (#1)
by ANTHONIUS
01:35
created

FastRouteException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A fastRouteNotInstalled() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the doyo/mezzio-testing project.
5
 *
6
 * (c) Anthonius Munthi <https://itstoni.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\Mezzio\Testing\Exception;
15
16
class FastRouteException extends \Exception
17
{
18
    public static function fastRouteNotInstalled(): self
19
    {
20
        return new self(
21
            'Please install mezzio/mezzio-fastroute before using WithFastRoute trait.'
22
        );
23
    }
24
}
25