Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F111989330
PhortuneAccountBillingAddressTransaction.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
Tue, May 6, 13:27
Size
905 B
Mime Type
text/x-php
Expires
Thu, May 8, 13:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25982722
Attached To
rPH Phabricator
PhortuneAccountBillingAddressTransaction.php
View Options
<?php
final
class
PhortuneAccountBillingAddressTransaction
extends
PhortuneAccountTransactionType
{
const
TRANSACTIONTYPE
=
'billing-address'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getBillingAddress
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setBillingAddress
(
$value
);
}
public
function
getTitle
()
{
return
pht
(
'%s updated the account billing address.'
,
$this
->
renderAuthor
());
}
public
function
hasChangeDetailView
()
{
return
true
;
}
public
function
getMailDiffSectionHeader
()
{
return
pht
(
'CHANGES TO BILLING ADDRESS'
);
}
public
function
newChangeDetailView
()
{
$viewer
=
$this
->
getViewer
();
return
id
(
new
PhabricatorApplicationTransactionTextDiffDetailView
())
->
setViewer
(
$viewer
)
->
setOldText
(
$this
->
getOldValue
())
->
setNewText
(
$this
->
getNewValue
());
}
}
Event Timeline
Log In to Comment