Added more detail in obtaining first result
This commit is contained in:
@ -37,7 +37,11 @@ class ResultSet implements RSInterface
|
||||
{
|
||||
return $this->getStatement()->fetchAll(PDO::FETCH_OBJ);
|
||||
}
|
||||
public function getFirst(): mixed
|
||||
public function getFirstAsArray(): array
|
||||
{
|
||||
return $this->getStatement()->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
public function getFirstAsObject(): object
|
||||
{
|
||||
return $this->getStatement()->fetch(PDO::FETCH_OBJ);
|
||||
}
|
||||
|
Reference in New Issue
Block a user