1 | <?php |
||
19 | class UpdateCommentCommandHandler |
||
20 | { |
||
21 | /** |
||
22 | * The date factory instance. |
||
23 | * |
||
24 | * @var \Gitamin\Dates\DateFactory |
||
25 | */ |
||
26 | protected $dates; |
||
27 | |||
28 | /** |
||
29 | * Create a new update comment command handler instance. |
||
30 | * |
||
31 | * @param \Gitamin\Dates\DateFactory $dates |
||
32 | */ |
||
33 | public function __construct(DateFactory $dates) |
||
37 | |||
38 | /** |
||
39 | * Handle the update comment command. |
||
40 | * |
||
41 | * @param \Gitamin\Commands\Comment\UpdateCommentCommand $command |
||
42 | * |
||
43 | * @return \Gitamin\Models\Comment |
||
44 | */ |
||
45 | public function handle(UpdateCommentCommand $command) |
||
54 | |||
55 | /** |
||
56 | * Filter the command data. |
||
57 | * |
||
58 | * @param \Gitamin\Commands\Comment\UpdateCommentCommand $command |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | protected function filter(UpdateCommentCommand $command) |
||
72 | } |
||
73 |