Browse Source

Make some methods/fields of the transaction class protected instead of private.

Daniele Alessandri 14 years ago
parent
commit
71e7cb1399
1 changed files with 6 additions and 6 deletions
  1. 6 6
      lib/Predis/Transaction/MultiExecContext.php

+ 6 - 6
lib/Predis/Transaction/MultiExecContext.php

@@ -18,11 +18,11 @@ class MultiExecContext {
     const STATE_CAS         = 0x01000;
     const STATE_WATCH       = 0x10000;
 
-    private $_client;
-    private $_options;
     private $_state;
     private $_canWatch;
-    private $_commands;
+    protected $_client;
+    protected $_options;
+    protected $_commands;
 
     public function __construct(Client $client, Array $options = null) {
         $this->checkCapabilities($client);
@@ -74,12 +74,12 @@ class MultiExecContext {
         }
     }
 
-    private function reset() {
+    protected function reset() {
         $this->setState(self::STATE_RESET);
         $this->_commands = array();
     }
 
-    private function initialize() {
+    protected function initialize() {
         if ($this->checkState(self::STATE_INITIALIZED)) {
             return;
         }
@@ -239,7 +239,7 @@ class MultiExecContext {
         return $returnValues;
     }
 
-    private function executeTransactionBlock($block) {
+    protected function executeTransactionBlock($block) {
         $blockException = null;
         $this->flagState(self::STATE_INSIDEBLOCK);
         try {