| 1 | <?php |
||
| 8 | * @author Yann Eugoné <[email protected]> |
||
| 9 | */ |
||
| 10 | class DuplicatedEnumException extends BadMethodCallException |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param string $name |
||
| 14 | * |
||
| 15 | * @return DuplicatedEnumException |
||
| 16 | */ |
||
| 17 | 1 | public static function alreadyRegistered($name) |
|
| 18 | { |
||
| 19 | 1 | return new self(sprintf('Enum with name "%s" is already registered', $name)); |
|
| 20 | } |
||
| 22 |