|
9 | 9 | use JsonSerializable; |
10 | 10 |
|
11 | 11 | /** |
12 | | - * @mixin \Money\Money |
| 12 | + * Money. |
| 13 | + * |
| 14 | + * @method bool isSameCurrency(Money|\Money\Money ...$others) |
| 15 | + * @method bool equals(Money|\Money\Money $other) |
| 16 | + * @method int compare(Money|\Money\Money $other) |
| 17 | + * @method bool greaterThan(Money|\Money\Money $other) |
| 18 | + * @method bool greaterThanOrEqual(Money|\Money\Money $other) |
| 19 | + * @method bool lessThan(Money|\Money\Money $other) |
| 20 | + * @method bool lessThanOrEqual(Money|\Money\Money $other) |
| 21 | + * @method string getAmount() |
| 22 | + * @method \Money\Currency getCurrency() |
| 23 | + * @method Money add(Money|\Money\Money ...$addends) |
| 24 | + * @method Money subtract(Money|\Money\Money ...$subtrahends) |
| 25 | + * @method Money multiply(float|int|string $multiplier, int $roundingMode = \Money\Money::ROUND_HALF_UP) |
| 26 | + * @method Money divide(float|int|string $divisor, int $roundingMode = \Money\Money::ROUND_HALF_UP) |
| 27 | + * @method Money mod(Money|\Money\Money $divisor) |
| 28 | + * @method Money absolute() |
| 29 | + * @method Money negative() |
| 30 | + * @method Money[] allocate(array $ratios) |
| 31 | + * @method Money[] allocateTo(int $n) |
| 32 | + * @method string ratioOf(Money|\Money\Money $money) |
| 33 | + * @method bool isZero() |
| 34 | + * @method bool isPositive() |
| 35 | + * @method bool isNegative() |
| 36 | + * @method static Money min(Money|\Money\Money $first, Money|\Money\Money ...$collection) |
| 37 | + * @method static Money max(Money|\Money\Money $first, Money|\Money\Money ...$collection) |
| 38 | + * @method static Money sum(Money|\Money\Money $first, Money|\Money\Money ...$collection) |
| 39 | + * @method static Money avg(Money|\Money\Money $first, Money|\Money\Money ...$collection) |
13 | 40 | */ |
14 | 41 | class Money implements Arrayable, Jsonable, JsonSerializable, Renderable |
15 | 42 | { |
|
0 commit comments