A file stored on the server.

A stored file may contain arbitrary data (text files, images, ...) In contrast to a \FeaturePhp\File\TextFile, it can not be manipulated and will be included in a product as is.

package Default
inherited_from \FeaturePhp\File\File

 Methods

Creates a stored file.

__construct(string $fileTarget, string $fileSource) 
inherited_from \FeaturePhp\File\File::__construct()

Parameters

$fileTarget

string

$fileSource

string

Creates a file.

__construct(string $fileTarget) 
Inherited

Parameters

$fileTarget

string

Creates a stored file from a file specification.

fromSpecification(\FeaturePhp\Specification\FileSpecification $fileSpecification) : \FeaturePhp\File\StoredFile
Static

Parameters

$fileSpecification

\FeaturePhp\Specification\FileSpecification

Returns

\FeaturePhp\File\StoredFile

Returns the stored file's content.

getContent() : \FeaturePhp\File\StoredFileContent
inherited_from \FeaturePhp\File\File::getContent()

Returns

\FeaturePhp\File\StoredFileContent

Returns the file's content.

getContent() : \FeaturePhp\File\FileContent
Inherited

Returns

\FeaturePhp\File\FileContent

Returns the file's target.

getTarget() : string
Inherited

Returns

string

 Properties

 

a (relative) path to the file on the server

$fileSource : string

Default

 

the file target in the generated product

$fileTarget : string

Default