CLI: API templates

This commit is contained in:
2024-04-04 12:46:58 +02:00
parent a7dc4c0d2f
commit 10f7025569
12 changed files with 244 additions and 66 deletions

View File

@@ -21,15 +21,15 @@ abstract class RowIterator implements \Iterator {
protected abstract function getNumRows(): int;
protected abstract function fetchRow(int $index): array;
public function current() {
public function current(): array {
return $this->fetchRow($this->rowIndex);
}
public function next() {
public function next(): void {
$this->rowIndex++;
}
public function key() {
public function key(): int {
return $this->rowIndex;
}