some cleanup as-per phpstan

This commit is contained in:
Nabeel Shahzad
2018-04-23 08:46:28 -05:00
parent 2319a8c9f4
commit cff7e2c4da
14 changed files with 789 additions and 36 deletions

View File

@@ -20,7 +20,7 @@ class Money
public static $subunit_multiplier;
/**
* @param $amount
* @param mixed $amount
* @return MoneyBase
* @throws \UnexpectedValueException
* @throws \InvalidArgumentException
@@ -32,7 +32,7 @@ class Money
/**
* Create from a dollar amount
* @param $amount
* @param mixed $amount
* @return Money
* @throws \UnexpectedValueException
* @throws \InvalidArgumentException
@@ -46,7 +46,7 @@ class Money
/**
* Convert a whole unit into it's subunit, e,g: dollar to cents
* @param $amount
* @param mixed $amount
* @return float|int
*/
public static function convertToSubunit($amount)
@@ -72,7 +72,7 @@ class Money
/**
* Money constructor.
* @param $amount
* @param mixed $amount
* @throws \UnexpectedValueException
* @throws \InvalidArgumentException
*/
@@ -143,7 +143,7 @@ class Money
/**
* Add an amount
* @param $amount
* @param mixed $amount
* @return Money
* @throws \UnexpectedValueException
* @throws \InvalidArgumentException
@@ -160,7 +160,7 @@ class Money
}
/**
* @param $percent
* @param mixed $percent
* @return $this
* @throws \OutOfBoundsException
* @throws \InvalidArgumentException