CantUseInOperatorOnCompositeKeys.php
9 months ago
InvalidOrientation.php
9 months ago
UnrecognizedField.php
9 months ago
index.php
9 months ago
UnrecognizedField.php
18 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Persisters\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use MailPoetVendor\Doctrine\ORM\Exception\PersisterException; |
| 6 | use function sprintf; |
| 7 | final class UnrecognizedField extends PersisterException |
| 8 | { |
| 9 | public static function byName(string $field) : self |
| 10 | { |
| 11 | return new self(sprintf('Unrecognized field: %s', $field)); |
| 12 | } |
| 13 | public static function byFullyQualifiedName(string $className, string $field) : self |
| 14 | { |
| 15 | return new self(sprintf('Unrecognized field: %s::$%s', $className, $field)); |
| 16 | } |
| 17 | } |
| 18 |