mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Undeprecated Currency because the Money class is overkill in many situations where you're dealing with a single-currency system.
This commit is contained in:
parent
e5afa25522
commit
0d0ad0e572
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* Represents a decimal field containing a currency amount.
|
||||
* Currency the currency class only supports single currencies.
|
||||
* The currency class only supports single currencies. For multi-currency support, use {@link Money}
|
||||
*
|
||||
*
|
||||
* Example definition via {@link DataObject::$db}:
|
||||
* <code>
|
||||
@ -11,8 +12,6 @@
|
||||
* );
|
||||
* </code>
|
||||
*
|
||||
* @deprecated 2.5 Use Money class
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
@ -20,7 +19,6 @@ class Currency extends Decimal {
|
||||
protected static $currencySymbol = '$';
|
||||
|
||||
function __construct($name, $wholeSize = 9, $decimalSize = 2, $defaultValue = 0) {
|
||||
Deprecation::notice('2.5', 'Use Money class instead.');
|
||||
parent::__construct($name, $wholeSize, $decimalSize, $defaultValue);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user