Page MenuHomeWickedGov Phorge

OutputFileWithContents.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

OutputFileWithContents.php

<?php
namespace Shellbox\Command;
use Shellbox\Multipart\MultipartReader;
use Shellbox\ShellboxError;
/**
* An OutputFile which carries its contents for eventual retrieval.
*
* @since 4.1.0
*/
abstract class OutputFileWithContents extends OutputFile {
/**
* Copy from the specified source path to the registered destination
* location, which may be either a string or a path outside the working
* directory.
*
* @internal
* @param string $sourcePath
*/
abstract public function copyFromFile( $sourcePath );
/**
* Get the contents of the output file from its final destination. This
* should be called after copyFromFile() or readFromMultipart(). It will
* throw if the file is not readable.
*
* @internal
* @return string
* @throws ShellboxError
*/
abstract public function getContents();
/**
* Copy from the MultipartReader to the registered destination location.
* The MultipartReader must be at the appropriate place in the input stream.
* Used by the client.
*
* @internal
* @param MultipartReader $multipartReader
*/
abstract public function readFromMultipart( MultipartReader $multipartReader );
}

File Metadata

Mime Type
text/x-php
Expires
Oct 3 2026, 01:18 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7e/b2/0b2d7885aa108d00095553ef2b9d
Default Alt Text
OutputFileWithContents.php (1 KB)

Event Timeline