Page MenuHomeWickedGov Phorge

InputFileFromString.php
No OneTemporary

Size
534 B
Referenced Files
None
Subscribers
None

InputFileFromString.php

<?php
namespace Shellbox\Command;
use Shellbox\FileUtils;
/**
* Encapsulation of an input file that comes from a string
*/
class InputFileFromString extends InputFileWithContents {
/** @var string */
private $contents;
/**
* @internal
* @param string $contents
*/
public function __construct( string $contents ) {
$this->contents = $contents;
}
public function copyTo( $destPath ) {
FileUtils::putContents( $destPath, $this->contents );
}
public function getStreamOrString() {
return $this->contents;
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 17:46 (5 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
18/e4/5142baa51591dac099caf2c17a65
Default Alt Text
InputFileFromString.php (534 B)

Event Timeline