7 Commits

Author SHA1 Message Date
ac9b141928 Merge branch 'develop' into release 2022-09-12 21:45:22 -03:00
758ff0e282 Added more detail in obtaining first result 2022-09-12 21:45:14 -03:00
d5fde83afb FIX 2022-09-09 11:19:11 -04:00
6dda8e1515 FIX 2022-09-09 11:18:36 -04:00
ec19c25681 FIX: autoloads 2022-09-09 10:57:17 -04:00
6525eb2f31 FIX: missing autoload definitions 2022-09-09 10:56:05 -04:00
6b978c371c Working version for 2.0 2022-09-08 20:02:55 -04:00
3 changed files with 13 additions and 3 deletions

View File

@ -11,5 +11,10 @@
"email": "aldarien85@gmail.com"
}
],
"require": {}
"require": {},
"autoload": {
"psr-4": {
"ProVM\\": "src/"
}
}
}

View File

@ -9,5 +9,6 @@ interface ResultSet
public function execute(array $values): ResultSet;
public function getAsArray(): array;
public function getAsObject(): array;
public function getFirst(): mixed;
public function getFirstAsArray(): array;
public function getFirstAsObject(): object;
}

View File

@ -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);
}