From 909eb39f2be2af78025860f29fb2dc7b9ad4881d Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Wed, 15 Feb 2017 23:33:41 -0600 Subject: [PATCH] Drop countable interface from command result --- lib/CommandResult.php | 2 +- lib/PgSqlCommandResult.php | 9 +-------- lib/PqCommandResult.php | 9 +-------- 3 files changed, 3 insertions(+), 17 deletions(-) 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 +}