lib/3rdParty/composer/symfony/serializer/Exception/PartialDenormalizationException.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <[email protected]> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | namespace Symfony\Component\Serializer\Exception; |
| 13 | |
| 14 | /** |
| 15 | * @author Grégoire Pineau <[email protected]> |
| 16 | */ |
| 17 | class PartialDenormalizationException extends UnexpectedValueException |
| 18 | { |
| 19 | /** |
| 20 | * @param NotNormalizableValueException[] $errors |
| 21 | */ |
| 22 | public function __construct( |
| 23 | private mixed $data, |
| 24 | private array $errors, |
| 25 | ) { |
| 26 | } |
| 27 | |
| 28 | public function getData(): mixed |
| 29 | { |
| 30 | return $this->data; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * @return NotNormalizableValueException[] |
| 35 | */ |
| 36 | public function getErrors(): array |
| 37 | { |
| 38 | return $this->errors; |
| 39 | } |
| 40 | } |