ADORecordSet   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 30
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A count() 0 3 1
A recordCount() 0 3 1
A fetchField() 0 3 1
1
<?php
2
3
/**
4
 * PHPPgAdmin 6.1.3
5
 */
6
7
namespace PHPPgAdmin;
8
use ADORecordSet as ADODBRecordsetClass;
9
/**
10
 * Extends ADORecordSet to let correct inference on PHPDoc params.
11
 */
12
class ADORecordSet extends  ADODBRecordsetClass implements \Countable
0 ignored issues
show
Coding Style introduced by
Expected 1 space before "ADODBRecordsetClass"; 2 found
Loading history...
13
{
14
    /**
15
     * Returns the recordCount.
16
     */
17
    public function count(): int
18
    {
19
        return $this->NumRows();
20
    }
21
22
    /**
23
     * synonyms RecordCount and RowCount.
24
     *
25
     * @return int number of rows or -1 if this is not supported
26
     */
27
    public function recordCount()
28
    {
29
        return $this->count();
30
    }
31
32
    /**
33
     * Returns the recordCount.
34
     *
35
     * @param int $fieldoffset
36
     *
37
     * @return \ADOFieldObject the field
38
     */
39
    public function fetchField($fieldoffset = -1): \ADOFieldObject
40
    {
41
        return parent::fetchField();
42
    }
43
}
44