Passed
Push — develop ( 16b665...d246a9 )
by Felipe
05:54
created

ADORecordSet   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A count() 0 3 1
A fetchField() 0 3 1
1
<?php
2
3
/**
4
 * PHPPgAdmin 6.0.0
5
 */
6
7
namespace PHPPgAdmin;
8
9
/**
10
 * @file
11
 * Extends ADORecordSet to let correct inference on PHPDoc params
12
 */
13
14
/**
15
 * Extends ADORecordSet to let correct inference on PHPDoc params.
16
 */
17
class ADORecordSet extends \ADORecordSet implements \Countable
18
{
19
    /**
20
     * Returns the recordCount.
21
     */
22
    public function count(): int
23
    {
24
        return $this->NumRows();
25
    }
26
27
    /**
28
     * Returns the recordCount.
29
     *
30
     * @param int $fieldoffset
31
     *
32
     * @return \ADOFieldObject the field
33
     */
34
    public function fetchField($fieldoffset = -1): \ADOFieldObject
35
    {
36
        return parent::fetchField();
37
    }
38
}
39