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

ViewExceptionWithSolution   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setSolution() 0 4 1
A getSolution() 0 4 1
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