diff options
Diffstat (limited to 'src/Interfaces/RecordSet.php')
-rw-r--r-- | src/Interfaces/RecordSet.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/Interfaces/RecordSet.php b/src/Interfaces/RecordSet.php new file mode 100644 index 00000000..9310db75 --- /dev/null +++ b/src/Interfaces/RecordSet.php @@ -0,0 +1,33 @@ +<?php + +/** + * PHPPgAdmin6 + */ + +namespace PHPPgAdmin\Interfaces; + +use ADOFieldObject; +use IteratorAggregate; + +interface RecordSet extends IteratorAggregate +{ + /** + * Returns the recordCount. + */ + public function count(): int; + + /** + * Counts the records in the instance array. + * + * @return int number of records in the instance array + */ + public function RecordCount(): int; + + /** + * Advance the internal pointer of the instance array + * if no more fields are left, marks the instance variable $EOF as true. + */ + public function MoveNext(): void; + + public function FetchField(int $fieldoffset = -1): ADOFieldObject; +} |