PHP 8.2.30
Preview: UnresolvableCurrencyPairException.php Size: 786 B
/proc/thread-self/root/home/byroehnu/easetack.com/vendor/moneyphp/money/src/Exception/UnresolvableCurrencyPairException.php

<?php

declare(strict_types=1);

namespace Money\Exception;

use InvalidArgumentException;
use Money\Currency;
use Money\Exception;

use function sprintf;

/**
 * Thrown when there is no currency pair (rate) available for the given currencies.
 */
final class UnresolvableCurrencyPairException extends InvalidArgumentException implements Exception
{
    /**
     * Creates an exception from Currency objects.
     */
    public static function createFromCurrencies(Currency $baseCurrency, Currency $counterCurrency): UnresolvableCurrencyPairException
    {
        $message = sprintf(
            'Cannot resolve a currency pair for currencies: %s/%s',
            $baseCurrency->getCode(),
            $counterCurrency->getCode()
        );

        return new self($message);
    }
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
136 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
134 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
259 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
835 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
132 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
251 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
262 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download
786 B lrw-rw-rw- 2025-04-03 08:26:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).