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

This commit is contained in:
Daniele Alessandri
2011-08-24 11:49:31 +02:00
parent f085d2f97d
commit 71e7cb1399
+6 -6
View File
@@ -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 {