ProjectDescriptorMapper

in package

Maps a projectDescriptor to and from a cache instance.

Constants

mixed FILE_PREFIX = 'phpDocumentor-projectDescriptor-files-'

mixed FILE_LIST = 'phpDocumentor-projectDescriptor-filelist'

mixed KEY_SETTINGS = 'phpDocumentor-projectDescriptor-settings'

Properties

private$cache  : \Symfony\Component\Cache\Adapter\AdapterInterface                

Methods

Initializes this mapper with the given cache instance.

public__construct(AdapterInterface $descriptors) : mixed

Parameters

$descriptors : AdapterInterface

Returns

mixed

Returns the Project Descriptor from the cache.

publicpopulate(ProjectDescriptor $projectDescriptor) : void

Parameters

$projectDescriptor : ProjectDescriptor

Stores a Project Descriptor in the Cache.

publicsave(ProjectDescriptor $projectDescriptor) : void

Parameters

$projectDescriptor : ProjectDescriptor

Removes all files in cache that do not occur in the given FileSet Collection.

publicgarbageCollect(\phpDocumentor\Reflection\File[] $files) : void

Parameters

$files : \phpDocumentor\Reflection\File[]

privateloadCacheItemAsSettings(ProjectDescriptor $projectDescriptor) : void

Parameters

$projectDescriptor : ProjectDescriptor