Completed
Push — master ( 3e53e1...19a6bd )
by Marcel
01:27
created

ViewExceptionWithSolution::getSolution()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Facade\Ignition\Exceptions;
4
5
use ErrorException;
6
use Facade\Ignition\DumpRecorder\HtmlDumper;
7
use Facade\FlareClient\Contracts\ProvidesFlareContext;
8
use Facade\IgnitionContracts\ProvidesSolution;
9
use Facade\IgnitionContracts\Solution;
10
11
class ViewExceptionWithSolution extends ViewException implements ProvidesSolution
12
{
13
    /** @var Solution */
14
    protected $solution;
15
16
    public function setSolution(Solution $solution)
17
    {
18
        $this->solution = $solution;
19
    }
20
21
    public function getSolution(): Solution
22
    {
23
        return $this->solution;
24
    }
25
}
26