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

ResultAwareTrait   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 21
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getResult() 0 4 1
A setResult() 0 6 1
A getStatus() 0 4 1
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
}