mailpoet
/
vendor-prefixed
/
doctrine
/
orm
/
src
/
Mapping
/
Exception
/
InvalidCustomGenerator.php
CannotGenerateIds.php
9 months ago
InvalidCustomGenerator.php
9 months ago
UnknownGeneratorType.php
9 months ago
index.php
9 months ago
InvalidCustomGenerator.php
19 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Mapping\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use MailPoetVendor\Doctrine\ORM\Exception\ORMException; |
| 6 | use function sprintf; |
| 7 | use function var_export; |
| 8 | final class InvalidCustomGenerator extends ORMException |
| 9 | { |
| 10 | public static function onClassNotConfigured() : self |
| 11 | { |
| 12 | return new self('Cannot instantiate custom generator, no class has been defined'); |
| 13 | } |
| 14 | public static function onMissingClass(array $definition) : self |
| 15 | { |
| 16 | return new self(sprintf('Cannot instantiate custom generator : %s', var_export($definition, \true))); |
| 17 | } |
| 18 | } |
| 19 |