1 | <?php |
||
20 | class AddIssueCommandHandler |
||
21 | { |
||
22 | /** |
||
23 | * The date factory instance. |
||
24 | * |
||
25 | * @var \Gitamin\Dates\DateFactory |
||
26 | */ |
||
27 | protected $dates; |
||
28 | |||
29 | /** |
||
30 | * Create a new report issue command handler instance. |
||
31 | * |
||
32 | * @param \Gitamin\Dates\DateFactory $dates |
||
33 | * |
||
34 | * @return void |
||
|
|||
35 | */ |
||
36 | public function __construct(DateFactory $dates) |
||
40 | |||
41 | /** |
||
42 | * Handle the report issue command. |
||
43 | * |
||
44 | * @param \Gitamin\Commands\Issue\AddIssueCommand $command |
||
45 | * |
||
46 | * @return \Gitamin\Models\Issue |
||
47 | */ |
||
48 | public function handle(AddIssueCommand $command) |
||
71 | } |
||
72 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.