Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98276916
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, Jan 11, 17:11
Size
847 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 17:11 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23550867
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