Stash\Pool::getDriver PHP Method

getDriver() public method

public getDriver ( )
    public function getDriver()
    {
        return $this->driver;
    }

Usage Example

Example #1
0
 /**
  * CacheReader constructor.
  */
 public function __construct(Pool $pool)
 {
     if ($pool->getDriver() instanceof Ephemeral) {
         throw new InvalidCacheDriverException("Ephemeral cannot be used as a cache driver in this app");
     }
     $this->pool = $pool;
 }
All Usage Examples Of Stash\Pool::getDriver