BadMethodCallException.php
4 years ago
ConstraintDefinitionException.php
4 years ago
ExceptionInterface.php
4 years ago
GroupDefinitionException.php
4 years ago
InvalidArgumentException.php
4 years ago
InvalidOptionsException.php
4 years ago
LogicException.php
4 years ago
MappingException.php
4 years ago
MissingOptionsException.php
4 years ago
NoSuchMetadataException.php
4 years ago
OutOfBoundsException.php
4 years ago
RuntimeException.php
4 years ago
UnexpectedTypeException.php
4 years ago
UnexpectedValueException.php
4 years ago
UnsupportedMetadataException.php
4 years ago
ValidationFailedException.php
4 years ago
ValidatorException.php
4 years ago
index.php
3 years ago
UnexpectedValueException.php
17 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\Validator\Exception; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class UnexpectedValueException extends UnexpectedTypeException |
| 5 | { |
| 6 | private $expectedType; |
| 7 | public function __construct($value, string $expectedType) |
| 8 | { |
| 9 | parent::__construct($value, $expectedType); |
| 10 | $this->expectedType = $expectedType; |
| 11 | } |
| 12 | public function getExpectedType() : string |
| 13 | { |
| 14 | return $this->expectedType; |
| 15 | } |
| 16 | } |
| 17 |