| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 39 | public function save(Request $request): Response |
||
| 40 | { |
||
| 41 | $json = $request->getContent(); |
||
| 42 | /** @var Question $question */ |
||
| 43 | $question = $this->questionSerializer->deserialize($json, Question::class, 'json'); |
||
| 44 | $this->questionRepository->save($question); |
||
| 45 | |||
| 46 | return new Response('Succeeded'); |
||
| 47 | } |
||
| 49 |