Test Failed
Pull Request — develop (#380)
by Felipe
03:42
created

ADORecordSet::MoveNext()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * PHPPgAdmin 6.1.3
5
 */
6
7
namespace PHPPgAdmin;
8
9
use ADOFieldObject;
10
use ADORecordSet as ADODBRecordsetClass;
11
use Countable;
12
13
/**
14
 * Extends ADORecordSet to let correct inference on PHPDoc params.
15
 */
16
class ADORecordSet extends ADODBRecordsetClass implements Countable, Interfaces\RecordSet
17
{
18
    /**
19
     * Returns the recordCount.
20
     */
21
    public function count(): int
22
    {
23
        return $this->NumRows();
24
    }
25
26
    /**
27
     * synonyms RecordCount and RowCount.
28
     *
29
     * @return int number of rows or -1 if this is not supported
30
     */
31
    public function RecordCount()
32
    {
33
        return $this->count();
34
    }
35
36
    /**
37
     * Returns the recordCount.
38
     *
39
     * @param int $fieldoffset
40
     *
41
     * @return ADOFieldObject the field
42
     */
43
    public function FetchField($fieldoffset = -1): ADOFieldObject
44
    {
45
        return parent::FetchField();
46
    }
47
48
    public function MoveNext():void {
49
parent::MoveNext();
50
    }
51
}
52