A text file's content.
For text files we can store the whole file in a string.
| package | Default |
|---|---|
| inherited_from | \FeaturePhp\File\FileContent |
__construct(string $content)
string
addToZip(\ZipArchive $zip, string $target)
This is expected to be called only be a \FeaturePhp\Exporter\ZipExporter.
| inherited_from | \FeaturePhp\File\FileContent::addToZip() |
|---|
\ZipArchive
stringthe file target in the ZIP archive
addToZip(\ZipArchive $zip, string $target)
This is expected to be called only be a \FeaturePhp\Exporter\ZipExporter.
\ZipArchive
stringthe file target in the ZIP archive
copy(string $target)
This is expected to be called only be a \FeaturePhp\Exporter\LocalExporter.
| inherited_from | \FeaturePhp\File\FileContent::copy() |
|---|
stringthe file target in the filesystem
copy(string $target)
This is expected to be called only be a \FeaturePhp\Exporter\LocalExporter.
stringthe file target in the filesystem
getSummary() : string
This returns the whole text file.
| inherited_from | \FeaturePhp\File\FileContent::getSummary() |
|---|
stringgetSummary() : string
The summary should be suitable for an overview of generated files, but does not necessarily contain the complete file content.
string$content : string