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

RestException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 2
rs 10
c 1
b 0
f 0
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