Passed
Pull Request — develop (#53)
by Daniel
15:10
created

RestException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 14
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A errorMessage() 0 2 1
A __construct() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace InShore\Bookwhen\Exceptions;
6
7
8
/**
9
 * InshoreBookwhenRestException Class
10
 * 
11
 * @package inshore\bookwhen
12
 */
13
class RestException extends InshoreBookwhenException
14
{
15
    private $e;
16
    
17
    public function __construct($e) {
18
        $this->e = $e;
19
    }
20
    
21
    /**
22
     *
23
     * @return string
24
     */
25
    public function errorMessage() {
26
        return $this->e->getMessage();    }
27
}
28
29
//EOF!
30