Skip to content

Commit

Permalink
Merge pull request #160 from Chris53897/feature/improve-phpdoc
Browse files Browse the repository at this point in the history
chore: add throws annotation
  • Loading branch information
johanwilfer authored Jan 29, 2024
2 parents 5aaa96e + e57c83e commit dd1a444
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Pair/PairManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Tbbc\MoneyBundle\Pair;

use Money\Money;
use Tbbc\MoneyBundle\MoneyException;

/**
* Interface PairManagerInterface.
Expand All @@ -21,6 +22,8 @@ public function convert(Money $amount, string $currencyCode): Money;
*
* WARNING: This method has to dispatch a \TbbcMoneyEvents::AFTER_RATIO_SAVE event
* with a SaveRatioEvent
*
* @throws MoneyException
*/
public function saveRatio(string $currencyCode, float $ratio): void;

Expand Down Expand Up @@ -56,6 +59,8 @@ public function setRatioProvider(RatioProviderInterface $ratioProvider): void;
/**
* If ratio provider is defined, get currency code list, and fetch ratio
* from the ratio provider.
*
* @throws MoneyException
*/
public function saveRatioListFromRatioProvider(): void;
}

0 comments on commit dd1a444

Please sign in to comment.