Completed
Branch master (c4a11b)
by Adrian Florin
10:27 queued 07:46
created

RollBackResultTrait::getRollBackResult()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace NeedleProject\Transaction;
3
4
/**
5
 * Class RollBackResultTrait
6
 *
7
 * @package NeedleProject\Transaction
8
 * @author  Adrian Tilita <[email protected]>
9
 */
10
trait RollBackResultTrait
11
{
12
    /**
13
     * @var mixed
14
     */
15
    private $rollBackResult;
16
17
    /**
18
     * @param mixed $rollBackResult
19
     */
20 2
    public function setRollBackResult($rollBackResult)
21
    {
22 2
        $this->rollBackResult = $rollBackResult;
23 2
    }
24
25
    /**
26
     * @return mixed
27
     */
28 1
    public function getRollBackResult()
29
    {
30 1
        return $this->rollBackResult;
31
    }
32
}
33