Compare commits
6 Commits
2.0.0
...
ac9b141928
Author | SHA1 | Date | |
---|---|---|---|
ac9b141928 | |||
758ff0e282 | |||
d5fde83afb | |||
6dda8e1515 | |||
ec19c25681 | |||
6525eb2f31 |
@ -11,5 +11,10 @@
|
||||
"email": "aldarien85@gmail.com"
|
||||
}
|
||||
],
|
||||
"require": {}
|
||||
"require": {},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"ProVM\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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