ChunkWriterFileCache
in package
implements
ChunkWriterInterface, FileWriterInterface
uses
FileCacheTrait
FinalYes
Table of Contents
Interfaces
- ChunkWriterInterface
- FileWriterInterface
- Writer that materializes object state as a file.
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
Return values
GeneratortoFile()
Converts the object's data to a file on disk.
public
toFile() : SplFileInfo