9d5b4712673b413bc647e86a76200f77fe89917d
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CuyZ\Valinor\Mapper\Tree\Exception;
6
7 use CuyZ\Valinor\Definition\FunctionDefinition;
8 use RuntimeException;
9
10 /** @internal */
11 final class MissingObjectImplementationRegistration extends RuntimeException
12 {
13 public function __construct(string $name, FunctionDefinition $functionDefinition)
14 {
15 parent::__construct(
16 "No implementation of `$name` found with return type `{$functionDefinition->returnType()->toString()}` of `{$functionDefinition->signature()}`.",
17 1653990549
18 );
19 }
20 }