Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function handle(Command $command) |
||
18 | { |
||
19 | $post = new Post(); |
||
20 | $post->setTitle($command->getTitle()); |
||
21 | $post->setContent($command->getContent()); |
||
22 | $post->setStatus($command->getStatus()); |
||
23 | $post->setUser($command->getUser()); |
||
24 | |||
25 | $this->postRepository->save($post); |
||
26 | } |
||
28 |