Doctrine\Common\Cache\CacheProvider::getNamespace PHP Метод

getNamespace() публичный Метод

Retrieves the namespace that prefixes all cache ids.
public getNamespace ( ) : string
Результат string
    public function getNamespace()
    {
        return $this->namespace;
    }

Usage Example

 /**
  * Constructor
  *
  * @param CacheProvider $cache
  */
 public function __construct(CacheProvider $cache = null)
 {
     $this->cache = $cache;
     if ($this->cache !== null && $this->cache->getNamespace() === '') {
         $this->cache->setNamespace(self::CACHE_NAMESPACE);
     }
 }
All Usage Examples Of Doctrine\Common\Cache\CacheProvider::getNamespace