1
0
mirror of https://github.com/danog/postgres.git synced 2024-11-26 20:15:02 +01:00

Drop countable interface from command result

This commit is contained in:
Aaron Piotrowski 2017-02-15 23:33:41 -06:00
parent 2a1c96761b
commit 909eb39f2b
3 changed files with 3 additions and 17 deletions

View File

@ -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.
*

View File

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

View File

@ -20,11 +20,4 @@ class PqCommandResult implements CommandResult {
public function affectedRows(): int {
return $this->result->affectedRows;
}
/**
* @return int
*/
public function count() {
return $this->affectedRows();
}
}
}