mirror of
https://github.com/danog/math.git
synced 2025-01-22 13:41:12 +01:00
BigInteger, BigDecimal and BigRational are now final
This commit is contained in:
parent
c343e0aeb9
commit
8b2d6781cd
@ -7,7 +7,7 @@ use Brick\Math\Internal\Calculator;
|
||||
/**
|
||||
* Immutable, arbitrary-precision signed decimal numbers.
|
||||
*/
|
||||
class BigDecimal extends BigNumber implements \Serializable
|
||||
final class BigDecimal extends BigNumber implements \Serializable
|
||||
{
|
||||
/**
|
||||
* The unscaled value of this decimal number.
|
||||
|
@ -10,7 +10,7 @@ use Brick\Math\Internal\Calculator;
|
||||
* All methods accepting a number as a parameter accept either a BigInteger instance,
|
||||
* an integer, or a string representing an arbitrary size integer.
|
||||
*/
|
||||
class BigInteger extends BigNumber implements \Serializable
|
||||
final class BigInteger extends BigNumber implements \Serializable
|
||||
{
|
||||
/**
|
||||
* The value, as a string of digits with optional leading minus sign.
|
||||
|
@ -7,7 +7,7 @@ namespace Brick\Math;
|
||||
*
|
||||
* This class is immutable.
|
||||
*/
|
||||
class BigRational extends BigNumber implements \Serializable
|
||||
final class BigRational extends BigNumber implements \Serializable
|
||||
{
|
||||
/**
|
||||
* The numerator.
|
||||
|
Loading…
x
Reference in New Issue
Block a user