Passed
Push — master ( 93f10a...c4a11b )
by Tilita
08:36
created

ExecutionResultTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 23
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setExecutionResult() 0 4 1
A getExecutionResult() 0 4 1
1
<?php
2
namespace NeedleProject\Transaction;
3
4
/**
5
 * Trait ExecutionResultTrait
6
 *
7
 * @package NeedleProject\Transaction
8
 * @author  Adrian Tilita <[email protected]>
9
 */
10
trait ExecutionResultTrait
11
{
12
    /**
13
     * @var mixed
14
     */
15
    private $executionResult;
16
17
    /**
18
     * @param mixed $executionResult
19
     */
20 4
    public function setExecutionResult($executionResult)
21
    {
22 4
        $this->executionResult = $executionResult;
23 4
    }
24
25
    /**
26
     * @return mixed
27
     */
28 1
    public function getExecutionResult()
29
    {
30 1
        return $this->executionResult;
31
    }
32
}
33