InvalidOrientation.php
13 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 | class InvalidOrientation extends PersisterException |
| 7 | { |
| 8 | public static function fromClassNameAndField(string $className, string $field) : self |
| 9 | { |
| 10 | return new self('Invalid order by orientation specified for ' . $className . '#' . $field); |
| 11 | } |
| 12 | } |
| 13 |