Completed
Push — work-fleets ( 6b7253...c0452c )
by SuperNova.WS
06:17
created

DbMysqliResultIterator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 17
ccs 0
cts 0
cp 0
rs 10
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A fetchCurrentRow() 0 4 1
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * Class DbMysqliResultIterator
5
 *
6
 * @property mysqli_result $_result
7
 */
8
class DbMysqliResultIterator extends DbResultIterator {
9
  protected function fetchCurrentRow() {
10
    $this->currentRow = $this->_result->fetch_assoc();
11
    // TODO: Implement fetchCurrentRow() method.
12
  }
13
14
  /**
15
   * Constructor
16
   *
17
   * @param mysqli_result $result
18
   * @param int           $fetchMode constant (MYSQLI_ASSOC, MYSQLI_NUM, MYSQLI_BOTH)
19
   */
20
  public function __construct($result, $fetchMode = MYSQLI_ASSOC) {
21
    parent::__construct($result, $fetchMode);
22
  }
23
24
}
25