| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 1 | public function handle(Command $command) |
|
| 19 | { |
||
| 20 | 1 | $post = $this->blogService->getPost($command->getId()); |
|
| 21 | 1 | $post->setTitle($command->getTitle()); |
|
| 22 | 1 | $post->setContent($command->getContent()); |
|
| 23 | 1 | $post->setStatus($command->getStatus()); |
|
| 24 | |||
| 25 | 1 | $this->postRepository->save($post); |
|
| 26 | 1 | } |
|
| 28 |