chore: Аннотации к типам
This commit is contained in:
parent
e5713e9015
commit
530a3b931d
22 changed files with 388 additions and 131 deletions
|
|
@ -7,7 +7,9 @@ class StatementIterator implements \Iterator
|
|||
{
|
||||
|
||||
private $result;
|
||||
/** @var int */
|
||||
private $pos = 0;
|
||||
/** @var int */
|
||||
private $row_count;
|
||||
|
||||
/**
|
||||
|
|
@ -37,15 +39,15 @@ class StatementIterator implements \Iterator
|
|||
return $this->result->cache[$this->pos];
|
||||
}
|
||||
|
||||
function next(): void{
|
||||
function next(): void {
|
||||
$this->pos++;
|
||||
}
|
||||
|
||||
function seek($index) {
|
||||
function seek($index): void {
|
||||
$this->pos = $index;
|
||||
}
|
||||
|
||||
function count() {
|
||||
function count(): int {
|
||||
return $this->row_count;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue