Total Complexity | 7 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | final class DeserializerLogicException extends \LogicException |
||
8 | { |
||
9 | public static function createMissingContentType(string $contentType): self |
||
10 | { |
||
11 | return new self(sprintf('There is no decoder for content-type: "%s"', $contentType)); |
||
12 | } |
||
13 | |||
14 | 1 | public static function createMissingDenormalizer(string $path): self |
|
15 | { |
||
16 | 1 | return new self(sprintf('There is no denormalizer at path: "%s"', $path)); |
|
17 | } |
||
18 | |||
19 | public static function createMissingMapping(string $class): self |
||
20 | { |
||
21 | return new self(sprintf('There is no mapping for class: "%s"', $class)); |
||
22 | } |
||
23 | |||
24 | 1 | public static function createMissingMethod(string $class, array $methods): self |
|
28 | ); |
||
29 | } |
||
30 | |||
31 | public static function createMissingProperty(string $class, string $property): self |
||
32 | { |
||
33 | return new self(sprintf('There is no property "%s" within class: "%s"', $property, $class)); |
||
34 | 1 | } |
|
35 | |||
36 | 1 | public static function createFactoryDoesNotReturnObject(string $path, string $dataType): self |
|
37 | { |
||
38 | return new self(sprintf('Factory does not return object, "%s" given at path: "%s"', $dataType, $path)); |
||
39 | } |
||
40 | |||
41 | public static function createConvertTypeDoesNotExists(string $convertType): self |
||
44 | } |
||
45 | } |
||
46 |