Debian Codegraph @

lib/3rdParty/composer/symfony/serializer/Exception/MissingConstructorArgumentsException.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 Maxime VEBER <[email protected]>
16 */
17 class MissingConstructorArgumentsException extends RuntimeException
18 {
19 /**
20 * @param string[] $missingArguments
21 * @param class-string|null $class
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 * @return string[]
35 */
36 public function getMissingConstructorArguments(): array
37 {
38 return $this->missingArguments;
39 }
40
41 /**
42 * @return class-string|null
43 */
44 public function getClass(): ?string
45 {
46 return $this->class;
47 }
48 }