PDepend\Util\Cache\CacheDriver::type PHP Метод

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

Note that the cache type will be reset after each storage method call, so you must invoke right before every call to restore() or store().
public type ( string $type ) : PDepend\Util\Cache\CacheDriver
$type string
Результат PDepend\Util\Cache\CacheDriver
    public function type($type);

Usage Example

Пример #1
0
 /**
  * The magic sleep method is called by the PHP runtime environment before an
  * instance of this class gets serialized. It returns an array with the
  * names of all those properties that should be cached for this class or
  * interface instance.
  *
  * @return array
  */
 public function __sleep()
 {
     if (is_array($this->methods)) {
         $this->cache->type('methods')->store($this->id, $this->methods);
         $this->methods = null;
     }
     return array('cache', 'context', 'docComment', 'endLine', 'modifiers', 'name', 'nodes', 'namespaceName', 'startLine', 'userDefined', 'id');
 }
All Usage Examples Of PDepend\Util\Cache\CacheDriver::type