Compare commits
1 Commits
2.1.0
...
9ec9fdd731
Author | SHA1 | Date | |
---|---|---|---|
9ec9fdd731 |
@ -11,10 +11,5 @@
|
||||
"email": "aldarien85@gmail.com"
|
||||
}
|
||||
],
|
||||
"require": {},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"ProVM\\": "src/"
|
||||
}
|
||||
}
|
||||
"require": {}
|
||||
}
|
||||
|
@ -9,6 +9,5 @@ interface ResultSet
|
||||
public function execute(array $values): ResultSet;
|
||||
public function getAsArray(): array;
|
||||
public function getAsObject(): array;
|
||||
public function getFirstAsArray(): array;
|
||||
public function getFirstAsObject(): object;
|
||||
public function getFirst(): mixed;
|
||||
}
|
||||
|
@ -37,11 +37,7 @@ class ResultSet implements RSInterface
|
||||
{
|
||||
return $this->getStatement()->fetchAll(PDO::FETCH_OBJ);
|
||||
}
|
||||
public function getFirstAsArray(): array
|
||||
{
|
||||
return $this->getStatement()->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
public function getFirstAsObject(): object
|
||||
public function getFirst(): mixed
|
||||
{
|
||||
return $this->getStatement()->fetch(PDO::FETCH_OBJ);
|
||||
}
|
||||
|
Reference in New Issue
Block a user