From 426d6f2b1f12e7c2a6f34935fefd7ecdaf4f62ec Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 5 Apr 2012 18:42:01 -0700 Subject: [PATCH] Make getTransactionKey() protected Test Plan: Search for `getTransactionKey`. Reviewers: epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D2115 --- .../connection/isolated/AphrontIsolatedDatabaseConnection.php | 2 +- src/storage/connection/mysql/AphrontMySQLDatabaseConnection.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/connection/isolated/AphrontIsolatedDatabaseConnection.php b/src/storage/connection/isolated/AphrontIsolatedDatabaseConnection.php index 11b0f8372f..25f57e4cc9 100644 --- a/src/storage/connection/isolated/AphrontIsolatedDatabaseConnection.php +++ b/src/storage/connection/isolated/AphrontIsolatedDatabaseConnection.php @@ -70,7 +70,7 @@ final class AphrontIsolatedDatabaseConnection return $this->affectedRows; } - public function getTransactionKey() { + protected function getTransactionKey() { return $this->transactionKey; } diff --git a/src/storage/connection/mysql/AphrontMySQLDatabaseConnection.php b/src/storage/connection/mysql/AphrontMySQLDatabaseConnection.php index 01d223b4a1..a1fffbb944 100644 --- a/src/storage/connection/mysql/AphrontMySQLDatabaseConnection.php +++ b/src/storage/connection/mysql/AphrontMySQLDatabaseConnection.php @@ -192,7 +192,7 @@ final class AphrontMySQLDatabaseConnection extends AphrontDatabaseConnection { return mysql_affected_rows($this->requireConnection()); } - public function getTransactionKey() { + protected function getTransactionKey() { return (int)$this->requireConnection(); }