Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106067852
DifferentialRevisionWrongStateTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Mar 22, 01:09
Size
847 B
Mime Type
text/x-php
Expires
Mon, Mar 24, 01:09 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25084584
Attached To
rPH Phabricator
DifferentialRevisionWrongStateTransaction.php
View Options
<?php
final
class
DifferentialRevisionWrongStateTransaction
extends
DifferentialRevisionTransactionType
{
const
TRANSACTIONTYPE
=
'differential.revision.wrong'
;
public
function
generateOldValue
(
$object
)
{
return
null
;
}
public
function
generateNewValue
(
$object
,
$value
)
{
return
$value
;
}
public
function
getIcon
()
{
return
'fa-exclamation'
;
}
public
function
getColor
()
{
return
'pink'
;
}
public
function
getActionStrength
()
{
return
4
;
}
public
function
getTitle
()
{
$new_value
=
$this
->
getNewValue
();
$status
=
DifferentialRevisionStatus
::
newForStatus
(
$new_value
);
return
pht
(
'This revision was not accepted when it landed; it landed in state %s.'
,
$this
->
renderValue
(
$status
->
getDisplayName
()));
}
public
function
getTitleForFeed
()
{
return
null
;
}
}
Event Timeline
Log In to Comment