1 | <?php |
||
7 | final class SerializerLogicException extends \LogicException |
||
8 | { |
||
9 | /** |
||
10 | * @param string $contentType |
||
11 | * |
||
12 | * @return self |
||
13 | */ |
||
14 | public static function createMissingContentType(string $contentType): self |
||
18 | |||
19 | /** |
||
20 | * @param string $path |
||
21 | * @param string $type |
||
22 | * @return SerializerLogicException |
||
23 | */ |
||
24 | public static function createWrongDataType(string $path, string $type): self |
||
28 | |||
29 | /** |
||
30 | * @param string $path |
||
31 | * |
||
32 | * @return self |
||
33 | */ |
||
34 | public static function createMissingNormalizer(string $path): self |
||
38 | |||
39 | /** |
||
40 | * @param string $class |
||
41 | * |
||
42 | * @return self |
||
43 | */ |
||
44 | public static function createMissingMapping(string $class): self |
||
48 | |||
49 | /** |
||
50 | * @param string $class |
||
51 | * @param array $methods |
||
52 | * |
||
53 | * @return self |
||
54 | */ |
||
55 | public static function createMissingMethod(string $class, array $methods): self |
||
61 | |||
62 | /** |
||
63 | * @param string $class |
||
64 | * @param string $property |
||
65 | * |
||
66 | * @return self |
||
67 | */ |
||
68 | public static function createMissingProperty(string $class, string $property): self |
||
72 | } |
||
73 |