Issues (217)

src/classes/ADORecordSet.php (1 issue)

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
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