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

FailedResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 22
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getMessage() 0 3 1
A getException() 0 3 1
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
}