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:
Sam Minnee 2011-10-29 12:11:27 +13:00
parent e5afa25522
commit 0d0ad0e572

View File

@ -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);
}