diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Proxy/NotAProxyClass.php')
-rw-r--r-- | vendor/doctrine/orm/src/Proxy/NotAProxyClass.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Proxy/NotAProxyClass.php b/vendor/doctrine/orm/src/Proxy/NotAProxyClass.php new file mode 100644 index 0000000..689cc3e --- /dev/null +++ b/vendor/doctrine/orm/src/Proxy/NotAProxyClass.php | |||
@@ -0,0 +1,22 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Proxy; | ||
6 | |||
7 | use Doctrine\ORM\Exception\ORMException; | ||
8 | use InvalidArgumentException; | ||
9 | |||
10 | use function sprintf; | ||
11 | |||
12 | final class NotAProxyClass extends InvalidArgumentException implements ORMException | ||
13 | { | ||
14 | public function __construct(string $className, string $proxyNamespace) | ||
15 | { | ||
16 | parent::__construct(sprintf( | ||
17 | 'The class "%s" is not part of the proxy namespace "%s"', | ||
18 | $className, | ||
19 | $proxyNamespace, | ||
20 | )); | ||
21 | } | ||
22 | } | ||