| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | #[Immutable] |
||
| 12 | final class TypeErrorInvalidArgumentException extends \InvalidArgumentException |
||
| 13 | { |
||
| 14 | 1 | private const MESSAGE_TEMPLATE = 'Params have not needed values "%s"'; |
|
| 15 | |||
| 16 | #[Pure] |
||
| 17 | 1 | private function __construct(string $message, int $code = 0, ?Throwable $previous = null) |
|
| 18 | { |
||
| 19 | parent::__construct($message, $code, $previous); |
||
| 20 | 1 | } |
|
| 21 | |||
| 22 | 1 | public static function fromParams(array $params, ?Throwable $previous = null): self |
|
| 27 | } |
||
| 28 | } |
||
| 29 |