Shellbox
Library and server for containerized shell execution
Loading...
Searching...
No Matches
Shellbox\Command\InputFileFromFile Class Reference

Encapsulation of an input file that is copied from another file. More...

+ Inheritance diagram for Shellbox\Command\InputFileFromFile:

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.
 

Detailed Description

Encapsulation of an input file that is copied from another file.

Member Function Documentation

◆ copyTo()

Shellbox\Command\InputFileFromFile::copyTo ( $destPath)

Copy the contents of the input file to a fully-qualified path.

Reimplemented from Shellbox\Command\InputFileWithContents.

◆ getStreamOrString()

Shellbox\Command\InputFileFromFile::getStreamOrString ( )

Get the contents of the file as either a PSR-7 StreamInterface or a string.

Reimplemented from Shellbox\Command\InputFileWithContents.


The documentation for this class was generated from the following file: