FileWriterFileCache
in package
implements
FileWriterInterface
Table of Contents
Interfaces
Methods
- __construct() : mixed
- toFile() : SplFileInfo
- Converts the object's data to a file on disk.
Methods
__construct()
public
__construct(FileWriterInterface $sourceWriter, SplFileInfo $cacheFile[, callable|null $shouldRefreshCacheDelegate = null ]) : mixed
Parameters
- $sourceWriter : FileWriterInterface
- $cacheFile : SplFileInfo
- $shouldRefreshCacheDelegate : callable|null = null
toFile()
Converts the object's data to a file on disk.
public
toFile() : SplFileInfo
Subsequent calls are expected to return the same file object each time.