| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
namespace Symfony\Component\Serializer\Exception; |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
class MissingConstructorArgumentsException extends RuntimeException |
| 18 |
{ |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
public function __construct( |
| 24 |
string $message, |
| 25 |
int $code = 0, |
| 26 |
?\Throwable $previous = null, |
| 27 |
private array $missingArguments = [], |
| 28 |
private ?string $class = null, |
| 29 |
) { |
| 30 |
parent::__construct($message, $code, $previous); |
| 31 |
} |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
public function getMissingConstructorArguments(): array |
| 37 |
{ |
| 38 |
return $this->missingArguments; |
| 39 |
} |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
public function getClass(): ?string |
| 45 |
{ |
| 46 |
return $this->class; |
| 47 |
} |
| 48 |
} |