Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed storageQueue to storageChain.

  • Loading branch information...
commit 903df934cc79653ef012cee58b32a3cae2a98c5e 1 parent f471c90
@roelvanduijnhoven authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 library/Zend/Authentication/Storage/Chain.php
View
14 library/Zend/Authentication/Storage/Chain.php
@@ -27,14 +27,14 @@ class Chain implements StorageInterface
*
* @var PriorityQueue
*/
- protected $storageQueue;
+ protected $storageChain;
/**
* Initializes the priority queue.
*/
public function __construct()
{
- $this->storageQueue = new PriorityQueue();
+ $this->storageChain = new PriorityQueue();
}
/**
@@ -43,7 +43,7 @@ public function __construct()
*/
public function add( StorageInterface $storage, $priority = 1 )
{
- $this->storageQueue->insert($storage, $priority);
+ $this->storageChain->insert($storage, $priority);
}
/**
@@ -62,7 +62,7 @@ public function isEmpty()
// Loop invariant: $storageWithHigherPriority contains all storage with higher priorty
// than the current one.
- foreach( $this->storageQueue as $storage )
+ foreach( $this->storageChain as $storage )
{
if( $storage->isEmpty() )
{
@@ -88,7 +88,7 @@ public function isEmpty()
*/
public function read()
{
- return $this->storageQueue->top()->read();
+ return $this->storageChain->top()->read();
}
/**
@@ -98,7 +98,7 @@ public function read()
*/
public function write( $contents )
{
- foreach( $this->storageQueue as $storage )
+ foreach( $this->storageChain as $storage )
$storage->write($contents);
}
@@ -109,7 +109,7 @@ public function write( $contents )
*/
public function clear()
{
- foreach( $this->storageQueue as $storage )
+ foreach( $this->storageChain as $storage )
$storage->clear();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.