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

GenerateApiDocsCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 36
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A handle() 0 4 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