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
string
the file target in the ZIP archive
addToZip(\ZipArchive $zip, string $target)
This is expected to be called only be a \FeaturePhp\Exporter\ZipExporter.
\ZipArchive
string
the 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() |
---|
string
the file target in the filesystem
copy(string $target)
This is expected to be called only be a \FeaturePhp\Exporter\LocalExporter.
string
the file target in the filesystem
getSummary() : string
This returns the whole text file.
inherited_from | \FeaturePhp\File\FileContent::getSummary() |
---|
string
getSummary() : string
The summary should be suitable for an overview of generated files, but does not necessarily contain the complete file content.
string
$content : string