19 declare(strict_types=1);
43 return 'zip_structure_reader';
53 return NoEngine::class;
72 throw new \InvalidArgumentException(
'Invalid definition');
76 $data = $reader->getStructure();
80 Streams::ofString($for_definition->sleep(
$data)),
persist()
Define whether the generated flavor and the respective streams should be persisted, or whether they should only be generated and used in-memory.
withEngine(Engine $engine)
The demanded Engine will be passed here.
processStream(FileInformation $information, FileStream $stream, FlavourDefinition $for_definition)
canHandleDefinition(FlavourDefinition $definition)
Check if a corresponding configuration can be processed by this Machine.
__construct()
FlavourMachines must be able to be created without further dependencies.
dependsOnEngine()
Return the class name of the Engine that is required for this Machine to work.
The base interface for all filesystem streams.