b6cf57c44a106453c841b83df3043b463d9a0539
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CuyZ\Valinor\Type\Parser\Exception\Generic;
6
7 use CuyZ\Valinor\Type\Parser\Exception\InvalidType;
8 use ReflectionClass;
9 use RuntimeException;
10
11 /** @internal */
12 final class SeveralExtendTagsFound extends RuntimeException implements InvalidType
13 {
14 /**
15 * @param ReflectionClass<object> $reflection
16 */
17 public function __construct(ReflectionClass $reflection)
18 {
19 parent::__construct(
20 "Only one `@extends` tag should be set for the class `$reflection->name`.",
21 1670195494
22 );
23 }
24 }