1 | <?php |
||
12 | class CreatePermission extends Command |
||
13 | { |
||
14 | use AdaptiveCommandParams; |
||
15 | |||
16 | /** |
||
17 | * The name of command. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name = 'permission:create-permission'; |
||
22 | |||
23 | /** |
||
24 | * The command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = 'Create a permission'; |
||
29 | |||
30 | /** |
||
31 | * The permission app. |
||
32 | * |
||
33 | * @var object |
||
34 | */ |
||
35 | protected $permissionApp; |
||
36 | |||
37 | /** |
||
38 | * The command constructor. |
||
39 | */ |
||
40 | public function __construct() |
||
48 | |||
49 | /** |
||
50 | * Execute the command. |
||
51 | * |
||
52 | * @return void |
||
53 | */ |
||
54 | public function handle() |
||
60 | |||
61 | /** |
||
62 | * Get the command arguments. |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | protected function getArguments() |
||
72 | |||
73 | /** |
||
74 | * Get the command options. |
||
75 | * |
||
76 | * @return array |
||
77 | */ |
||
78 | protected function getOptions() |
||
84 | } |
||
85 |