Completed
Pull Request — master (#1)
by
unknown
08:32
created

ResultAwareTrait::getResult()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace Dazzle\PgSQL\Result;
3
4
trait ResultAwareTrait
5
{
6
    protected $ret;
7
8
    public function getResult()
9
    {
10
        return $this->ret;
11
    }
12
13
    public function setResult($ret)
14
    {
15
        $this->$ret = $ret;
16
17
        return $this;
18
    }
19
20
    public function getStatus()
21
    {
22
        return \pg_result_status($this->ret);
23
    }
24
}