Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php final class PhortuneCurrencySerializer extends PhabricatorLiskSerializer { publi..
Decoded Output download
<?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 %s object.',
'PhortuneCurrency'));
}
return $value->serializeForStorage();
}
}
?>
Did this file decode correctly?
Original Code
<?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 %s object.',
'PhortuneCurrency'));
}
return $value->serializeForStorage();
}
}
Function Calls
None |
Stats
MD5 | 3bff73b13c3b6167cae0f7be512c68fe |
Eval Count | 0 |
Decode Time | 81 ms |