Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class CreateTaskCommand extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | //nom de la comanda quan s'executa. |
||
17 | //També es definieix el format de la comanda, entre {} s'ha de posar els noms dels paràmetres |
||
18 | protected $signature = 'task:create {name? : The Task name} {user_id? : The user id }'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Command description.'; |
||
26 | |||
27 | /** |
||
28 | * Create a new command instance. |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function __construct() |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Execute the console command. |
||
39 | * |
||
40 | * @return mixed |
||
41 | */ |
||
42 | //aqui s'ha de posar que ha de passar quan s'executa la comanda. |
||
43 | public function handle() |
||
60 |