| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 14 | public function getSerializer() |
|
| 27 | { |
||
| 28 | 14 | if ($this->serializer === null) { |
|
| 29 | 14 | $this->serializer = SerializerBuilder::create() |
|
| 30 | 14 | ->setPropertyNamingStrategy(new SerializedNameAnnotationStrategy(new IdenticalPropertyNamingStrategy())) |
|
| 31 | 14 | ->build(); |
|
| 32 | } |
||
| 33 | |||
| 34 | 14 | return $this->serializer; |
|
| 35 | } |
||
| 36 | |||
| 68 |