Skip to content

Commit

Permalink
Added correct phpdoc typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
sspat committed Feb 27, 2020
1 parent 9c221b0 commit e8ef3eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/BaseMoney.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ final private function __construct(string $amount, string $currency)
$this->currency = $currency;
}

/**
* @return static
*/
final public static function create(string $amount, Currency $currency) : self
{
$money = new static($amount, $currency->getCode());
Expand Down

0 comments on commit e8ef3eb

Please sign in to comment.