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

ADORecordSet::count()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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