Shellbox
Library and server for containerized shell execution
|
Encapsulation of an input file that is copied from another file. More...
Public Member Functions | |
__construct ( $path) | |
copyTo ( $destPath) | |
Copy the contents of the input file to a fully-qualified path. | |
getStreamOrString () | |
Get the contents of the file as either a PSR-7 StreamInterface or a string. | |
Public Member Functions inherited from Shellbox\Command\InputFile | |
getClientData () | |
Get data for JSON serialization by the client. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Shellbox\Command\InputFile | |
static | newFromClientData ( $data) |
Get an InputFile object to represent a file already created by the server. | |
Encapsulation of an input file that is copied from another file.
Shellbox\Command\InputFileFromFile::copyTo | ( | $destPath | ) |
Copy the contents of the input file to a fully-qualified path.
Reimplemented from Shellbox\Command\InputFileWithContents.
Shellbox\Command\InputFileFromFile::getStreamOrString | ( | ) |
Get the contents of the file as either a PSR-7 StreamInterface or a string.
Reimplemented from Shellbox\Command\InputFileWithContents.