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.
 

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.

Constructor & Destructor Documentation

◆ __construct()

Shellbox\Command\InputFileFromFile::__construct ( $path)
Parameters
string$path

Member Function Documentation

◆ copyTo()

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

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

Parameters
string$destPath

Reimplemented from Shellbox\Command\InputFile.

◆ getStreamOrString()

Shellbox\Command\InputFileFromFile::getStreamOrString ( )

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

Returns
StreamInterface|string

Reimplemented from Shellbox\Command\InputFile.


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