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

ResultSet::make()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 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