Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3493465
PhortuneCurrencySerializer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
500 B
Referenced Files
None
Subscribers
None
PhortuneCurrencySerializer.php
View Options
<?php
final
class
PhortuneCurrencySerializer
extends
PhabricatorLiskSerializer
{
public
function
willReadValue
(
$value
)
{
return
PhortuneCurrency
::
newFromString
(
$value
)
;
}
public
function
willWriteValue
(
$value
)
{
if
(
!
(
$value
instanceof
PhortuneCurrency
)
)
{
throw
new
Exception
(
pht
(
'Trying to save object with a currency column, but the column '
.
'value is not a PhortuneCurrency object.'
)
)
;
}
return
$value
->
serializeForStorage
(
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Apr 17, 06:42 (13 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1246952
Default Alt Text
PhortuneCurrencySerializer.php (500 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment