Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547236
DrydockCommandError.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
DrydockCommandError.php
View Options
<?php
final
class
DrydockCommandError
extends
Phobject
{
private
$phase
;
private
$displayCommand
;
private
$command
;
private
$error
;
private
$stdout
;
private
$stderr
;
public
static
function
newFromCommandException
(
CommandException
$ex
)
{
$error
=
new
self
();
$error
->
command
=
(
string
)
$ex
->
getCommand
();
$error
->
error
=
$ex
->
getError
();
$error
->
stdout
=
$ex
->
getStdout
();
$error
->
stderr
=
$ex
->
getStderr
();
return
$error
;
}
public
function
setPhase
(
$phase
)
{
$this
->
phase
=
$phase
;
return
$this
;
}
public
function
getPhase
()
{
return
$this
->
phase
;
}
public
function
setDisplayCommand
(
$display_command
)
{
$this
->
displayCommand
=
(
string
)
$display_command
;
return
$this
;
}
public
function
getDisplayCommand
()
{
return
$this
->
displayCommand
;
}
public
function
toDictionary
()
{
$display_command
=
$this
->
getDisplayCommand
();
if
(
$display_command
===
null
)
{
$display_command
=
$this
->
command
;
}
return
array
(
'phase'
=>
$this
->
getPhase
(),
'command'
=>
$display_command
,
'raw'
=>
$this
->
command
,
'err'
=>
$this
->
error
,
'stdout'
=>
$this
->
stdout
,
'stderr'
=>
$this
->
stderr
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:30 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122802
Default Alt Text
DrydockCommandError.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment