Zend\Authentication\Storage\Chain
Synopsis
class Chain
implements
StorageInterface
{
- // members
- protected PriorityQueue $storageChain;
- // methods
- public void __construct()
- public void add()
- public void isEmpty()
- public void read()
- public void write()
- public void clear()
Hierarchy
Implements
Members
protected
- $storageChain
—
Zend\Stdlib\PriorityQueue
Contains all storage that this authentication method uses. A storage placed in the priority queue with a higher priority is always used before using a storage with a lower priority.
Methods
public
- __construct() — Initializes the priority queue.
- add()
- clear() — Clear all storage in the chain.
- isEmpty() — Loop over the queue of storage until a storage is found that is non-empty. If such storage is not found, then this chain storage itself is empty.
- read() — If the chain is non-empty then the storage with the top priority is guaranteed to be filled. Return its value.
- write() — Write the new $contents to all storage in the chain.