
| Current Path : /var/www/html/store/vendor/commerceguys/addressing/src/Exception/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/vendor/commerceguys/addressing/src/Exception/UnexpectedTypeException.php |
<?php
namespace CommerceGuys\Addressing\Exception;
/**
* Thrown when a value does not match the expected type.
*
* @codeCoverageIgnore
*/
class UnexpectedTypeException extends \InvalidArgumentException implements ExceptionInterface
{
public function __construct($value, $expectedType)
{
$givenType = is_object($value) ? get_class($value) : gettype($value);
parent::__construct(sprintf('Expected argument of type "%s", "%s" given', $expectedType, $givenType));
}
}