diff --git a/lib/CommandResult.php b/lib/CommandResult.php index 933bbab..59de3e5 100644 --- a/lib/CommandResult.php +++ b/lib/CommandResult.php @@ -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. * diff --git a/lib/PgSqlCommandResult.php b/lib/PgSqlCommandResult.php index c9828eb..5d7d6f0 100644 --- a/lib/PgSqlCommandResult.php +++ b/lib/PgSqlCommandResult.php @@ -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(); - } -} \ No newline at end of file +} diff --git a/lib/PqCommandResult.php b/lib/PqCommandResult.php index 4ed1b0f..7b186e7 100644 --- a/lib/PqCommandResult.php +++ b/lib/PqCommandResult.php @@ -20,11 +20,4 @@ class PqCommandResult implements CommandResult { public function affectedRows(): int { return $this->result->affectedRows; } - - /** - * @return int - */ - public function count() { - return $this->affectedRows(); - } -} \ No newline at end of file +}