Completed
Push — master ( 7e8e79...1f43e8 )
by Hung
02:20 queued 20s
created

ResultSet   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getResultObject() 0 4 1
1
<?php
2
3
namespace Foolz\SphinxQL\Drivers\Pdo;
4
5
use Foolz\SphinxQL\Drivers\ResultSetBase;
6
use PDOStatement;
7
8
class ResultSet extends ResultSetBase
9
{
10
11
    protected $statement;
12
13
    /**
14
     * @param PDOStatement $statement
15
     */
16
    public function __construct(PDOStatement $statement)
17
    {
18
        $this->statement = $statement;
19
        $this->adapter = new ResultSetAdapter($statement);
20
        $this->init();
21
        $this->store();
22
    }
23
24
    /**
25
     * Get the result object returned by PHP's MySQLi
26
     *
27
     * @return \Pdostatement
28
     *
29
     * @codeCoverageIgnore
30
     */
31
    public function getResultObject()
32
    {
33
        return $this->statement;
34
    }
35
}
36