Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431726
InputFileFromString.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
534 B
Referenced Files
None
Subscribers
None
InputFileFromString.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:00 (1 d, 15 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9a/df/f513db55deafc6ccb6f4c5990622
Default Alt Text
InputFileFromString.php (534 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment