Test Failed
Pull Request — stable (#68)
by Nuno
18:22
created

ClassNotFoundException::getSolution()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
use Facade\IgnitionContracts\BaseSolution;
4
use Facade\IgnitionContracts\ProvidesSolution;
5
use Facade\IgnitionContracts\Solution;
6
7
require __DIR__ . '/../vendor/autoload.php';
8
9
(new \NunoMaduro\Collision\Provider)->register();
10
11
class ClassNotFoundException extends Exception implements ProvidesSolution
12
{
13
    public function getSolution(): Solution
14
    {
15
        return BaseSolution::create('A class import is missing')
16
            ->setSolutionDescription('You have a missing class import. Try importing this class: App\Post.');
17
    }
18
}
19
20
throw new ClassNotFoundException("Class `Post` not found.");
21