Skip to content

Commit

Permalink
Fix PHPDoc typings
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Feb 18, 2023
1 parent 1674f38 commit 06f9ade
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/Money.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,34 @@
use JsonSerializable;

/**
* @mixin \Money\Money
* Money.
*
* @method bool isSameCurrency(Money|\Money\Money ...$others)
* @method bool equals(Money|\Money\Money $other)
* @method int compare(Money|\Money\Money $other)
* @method bool greaterThan(Money|\Money\Money $other)
* @method bool greaterThanOrEqual(Money|\Money\Money $other)
* @method bool lessThan(Money|\Money\Money $other)
* @method bool lessThanOrEqual(Money|\Money\Money $other)
* @method string getAmount()
* @method \Money\Currency getCurrency()
* @method Money add(Money|\Money\Money ...$addends)
* @method Money subtract(Money|\Money\Money ...$subtrahends)
* @method Money multiply(float|int|string $multiplier, int $roundingMode = \Money\Money::ROUND_HALF_UP)
* @method Money divide(float|int|string $divisor, int $roundingMode = \Money\Money::ROUND_HALF_UP)
* @method Money mod(Money|\Money\Money $divisor)
* @method Money absolute()
* @method Money negative()
* @method Money[] allocate(array $ratios)
* @method Money[] allocateTo(int $n)
* @method string ratioOf(Money|\Money\Money $money)
* @method bool isZero()
* @method bool isPositive()
* @method bool isNegative()
* @method static Money min(Money|\Money\Money $first, Money|\Money\Money ...$collection)
* @method static Money max(Money|\Money\Money $first, Money|\Money\Money ...$collection)
* @method static Money sum(Money|\Money\Money $first, Money|\Money\Money ...$collection)
* @method static Money avg(Money|\Money\Money $first, Money|\Money\Money ...$collection)
*/
class Money implements Arrayable, Jsonable, JsonSerializable, Renderable
{
Expand Down

0 comments on commit 06f9ade

Please sign in to comment.