Skip to content

Commit 06f9ade

Browse files
Fix PHPDoc typings
1 parent 1674f38 commit 06f9ade

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

src/Money.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,34 @@
99
use JsonSerializable;
1010

1111
/**
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)
1340
*/
1441
class Money implements Arrayable, Jsonable, JsonSerializable, Renderable
1542
{

0 commit comments

Comments
 (0)