ChunkWriterFileCache
in package
implements
ChunkWriterInterface, FileWriterInterface
Table of Contents
Interfaces
Methods
- __construct() : mixed
- toChunks() : Generator
- Converts the object's held data to a Generator.
- toFile() : SplFileInfo
- Converts the object's data to a file on disk.
Methods
__construct()
public
__construct(ChunkWriterInterface $sourceWriter, SplFileInfo $cacheFile[, callable|null $shouldRefreshCacheDelegate = null ]) : mixed
Parameters
- $sourceWriter : ChunkWriterInterface
- $cacheFile : SplFileInfo
- $shouldRefreshCacheDelegate : callable|null = null
toChunks()
Converts the object's held data to a Generator.
public
toChunks() : Generator
Subsequent calls are expected to create a new Generator object each time.
Return values
GeneratortoFile()
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.