Completed
Push — master ( ce9eda...f41b2c )
by Mahmoud
03:36
created

GenerateApiDocsCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace App\Containers\Documentation\UI\CLI\Commands;
4
5
use App\Containers\Documentation\Actions\GenerateDocumentationAction;
6
use App\Ship\Parents\Commands\ConsoleCommand;
7
8
/**
9
 * Class GenerateApiDocsCommand
10
 *
11
 * @author  Mahmoud Zalt  <[email protected]>
12
 */
13
class GenerateApiDocsCommand extends ConsoleCommand
14
{
15
16
    /**
17
     * The name and signature of the console command.
18
     *
19
     * @var string
20
     */
21
    protected $signature = "apidoc:generate";
22
23
    /**
24
     * The console command description.
25
     *
26
     * @var string
27
     */
28
    protected $description = "Generate API Documentations (using API Doc JS)";
29
30
    /**
31
     * Create a new command instance.
32
     *
33
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

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.

Loading history...
34
     */
35
    public function __construct()
36
    {
37
        parent::__construct();
38
    }
39
40
    /**
41
     * @param \App\Containers\Documentation\Actions\GenerateDocumentationAction $action
42
     */
43
    public function handle(GenerateDocumentationAction $action)
44
    {
45
        $action->run($this);
46
    }
47
48
}
49