| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | abstract class AbstractApiProblemMapping implements NormalizationObjectMappingInterface |
||
| 13 | { |
||
| 14 | public function getNormalizationType(): string |
||
| 15 | { |
||
| 16 | return 'apiProblem'; |
||
| 17 | 1 | } |
|
| 18 | |||
| 19 | 1 | /** |
|
| 20 | * @return NormalizationFieldMappingInterface[] |
||
| 21 | */ |
||
| 22 | public function getNormalizationFieldMappings(string $path): array |
||
| 23 | { |
||
| 24 | return [ |
||
| 25 | NormalizationFieldMappingBuilder::create('type')->getMapping(), |
||
| 26 | NormalizationFieldMappingBuilder::create('title')->getMapping(), |
||
| 27 | 1 | NormalizationFieldMappingBuilder::create('detail')->getMapping(), |
|
| 28 | NormalizationFieldMappingBuilder::create('instance')->getMapping(), |
||
| 29 | ]; |
||
| 30 | 1 | } |
|
| 31 | 1 | ||
| 32 | 1 | /** |
|
| 33 | 1 | * @return NormalizationFieldMappingInterface[] |
|
| 34 | */ |
||
| 35 | public function getNormalizationEmbeddedFieldMappings(string $path): array |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return NormalizationLinkMappingInterface[] |
||
| 42 | 1 | */ |
|
| 43 | public function getNormalizationLinkMappings(string $path): array |
||
| 46 | } |
||
| 47 | } |
||
| 48 |