���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/luckymerchan/vendor/brick/money/src/Exception/ |
<?php declare(strict_types=1); namespace Brick\Money\Exception; use Brick\Money\Currency; /** * Exception thrown when a money is not in the expected currency or context. */ class MoneyMismatchException extends MoneyException { /** * @param Currency $expected * @param Currency $actual * * @return MoneyMismatchException */ public static function currencyMismatch(Currency $expected, Currency $actual) : self { return new self(sprintf( 'The monies do not share the same currency: expected %s, got %s.', $expected->getCurrencyCode(), $actual->getCurrencyCode() )); } /** * @param string $method * * @return MoneyMismatchException */ public static function contextMismatch(string $method) : self { return new self(sprintf( 'The monies do not share the same context. ' . 'If this is intended, use %s($money->toRational()) instead of %s($money).', $method, $method )); } }