Completed
Push — master ( 15cb6d...86e5be )
by Nikolas
03:31
created

FailedResult::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace rtens\domin\execution;
3
4
class FailedResult implements ExecutionResult {
5
6
    private $exception;
7
8
    public function __construct(\Exception $exception) {
9
        $this->exception = $exception;
10
    }
11
12
    /**
13
     * @return string|null
14
     */
15
    public function getMessage() {
16
        return $this->exception->getMessage();
17
    }
18
19
    /**
20
     * @return \Exception
21
     */
22
    public function getException() {
23
        return $this->exception;
24
    }
25
}