Initial commit with Symfony 2.1+Vendors
Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
35
vendor/jms/metadata/src/Metadata/Cache/CacheInterface.php
vendored
Normal file
35
vendor/jms/metadata/src/Metadata/Cache/CacheInterface.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Metadata\Cache;
|
||||
|
||||
use Metadata\ClassMetadata;
|
||||
|
||||
interface CacheInterface
|
||||
{
|
||||
/**
|
||||
* Loads a class metadata instance from the cache
|
||||
*
|
||||
* @param \ReflectionClass $class
|
||||
*
|
||||
* @return ClassMetadata
|
||||
*/
|
||||
function loadClassMetadataFromCache(\ReflectionClass $class);
|
||||
|
||||
/**
|
||||
* Puts a class metadata instance into the cache
|
||||
*
|
||||
* @param ClassMetadata $metadata
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function putClassMetadataInCache(ClassMetadata $metadata);
|
||||
|
||||
/**
|
||||
* Evicts the class metadata for the given class from the cache.
|
||||
*
|
||||
* @param \ReflectionClass $class
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function evictClassMetadataFromCache(\ReflectionClass $class);
|
||||
}
|
Reference in New Issue
Block a user