You are here

public function DoctrineCache::has in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Mapping/Cache/DoctrineCache.php \Symfony\Component\Validator\Mapping\Cache\DoctrineCache::has()

Returns whether metadata for the given class exists in the cache.

Parameters

string $class:

Overrides CacheInterface::has

File

vendor/symfony/validator/Mapping/Cache/DoctrineCache.php, line 49

Class

DoctrineCache
Adapts a Doctrine cache to a CacheInterface.

Namespace

Symfony\Component\Validator\Mapping\Cache

Code

public function has($class) {
  return $this->cache
    ->contains($class);
}