ErrorController::errorAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 7
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
crap 2
1
<?php
2
3
namespace App\Controller;
4
use Bone\Mvc\Controller;
5
use Bone\Mvc\Exception;
6
7
class ErrorController extends Controller
8
{
9
    public function errorAction()
10
    {
11
        /** @var Exception $e  */
12
        $e = $this->getParam('error');
13
        $this->view->message = $e->getMessage();
14
        $this->view->code = $e->getCode();
15
        $this->view->trace = $e->getTrace();
16
    }
17
18
    public function notFoundAction(){}
19
20
    public function notAuthorisedAction(){}
21
}