| 1 |
<?php |
| 2 |
|
| 3 |
namespace Shellbox\Command; |
| 4 |
|
| 5 |
use Psr\Http\Message\StreamInterface; |
| 6 |
|
| 7 |
/** |
| 8 |
* @since 4.1.0 |
| 9 |
*/ |
| 10 |
abstract class InputFileWithContents extends InputFile { |
| 11 |
/** |
| 12 |
* Copy the contents of the input file to a fully-qualified path |
| 13 |
* |
| 14 |
* @internal |
| 15 |
* @param string $destPath |
| 16 |
*/ |
| 17 |
abstract public function copyTo( $destPath ); |
| 18 |
|
| 19 |
/** |
| 20 |
* Get the contents of the file as either a PSR-7 StreamInterface or a |
| 21 |
* string. |
| 22 |
* |
| 23 |
* @internal |
| 24 |
* @return StreamInterface|string |
| 25 |
*/ |
| 26 |
abstract public function getStreamOrString(); |
| 27 |
} |