| 1 | <?php |
||
| 7 | final class SerializerLogicException extends \LogicException |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param string $contentType |
||
| 11 | * |
||
| 12 | * @return self |
||
| 13 | */ |
||
| 14 | 1 | public static function createMissingContentType(string $contentType): self |
|
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $path |
||
| 21 | * @param string $type |
||
| 22 | * |
||
| 23 | * @return SerializerLogicException |
||
| 24 | */ |
||
| 25 | public static function createWrongDataType(string $path, string $type): self |
||
| 26 | { |
||
| 27 | return new self(sprintf('Wrong data type "%s" at path : "%s"', $type, $path)); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $path |
||
| 32 | * |
||
| 33 | * @return self |
||
| 34 | */ |
||
| 35 | 1 | public static function createMissingNormalizer(string $path): self |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $class |
||
| 42 | * |
||
| 43 | * @return self |
||
| 44 | */ |
||
| 45 | 1 | public static function createMissingMapping(string $class): self |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $class |
||
| 52 | * @param array $methods |
||
| 53 | * |
||
| 54 | * @return self |
||
| 55 | */ |
||
| 56 | 1 | public static function createMissingMethod(string $class, array $methods): self |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $class |
||
| 65 | * @param string $property |
||
| 66 | * |
||
| 67 | * @return self |
||
| 68 | */ |
||
| 69 | 1 | public static function createMissingProperty(string $class, string $property): self |
|
| 73 | } |
||
| 74 |