mirror of
https://github.com/danog/postgres.git
synced 2024-11-30 04:29:12 +01:00
Drop countable interface from command result
This commit is contained in:
parent
2a1c96761b
commit
909eb39f2b
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Amp\Postgres;
|
||||
|
||||
interface CommandResult extends \Countable, Result {
|
||||
interface CommandResult extends Result {
|
||||
/**
|
||||
* Returns the number of rows affected by the query.
|
||||
*
|
||||
|
@ -33,11 +33,4 @@ class PgSqlCommandResult implements CommandResult {
|
||||
public function lastOid(): string {
|
||||
return (string) \pg_last_oid($this->handle);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function count(): int {
|
||||
return $this->affectedRows();
|
||||
}
|
||||
}
|
@ -20,11 +20,4 @@ class PqCommandResult implements CommandResult {
|
||||
public function affectedRows(): int {
|
||||
return $this->result->affectedRows;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function count() {
|
||||
return $this->affectedRows();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user