Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93052842
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
Mon, Nov 25, 20:32
Size
905 B
Mime Type
text/x-php
Expires
Wed, Nov 27, 20:32 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22563345
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