You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- declare(strict_types=1);
-
-
- namespace App\Utils\Money;
-
-
- class CurrencyPair
- {
-
- private Currency $base;
- private Currency $quote;
-
- public function __construct(Currency $base, Currency $quote)
- {
- $this->base = $base;
- $this->quote = $quote;
- }
-
- public function getBase(): Currency
- {
- return $this->base;
- }
-
- public function getQuote(): Currency
- {
- return $this->quote;
- }
-
- public function __toString()
- {
- return $this->base . '/' . $this->quote;
- }
- }
|