Total Complexity | 5 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class ProlongationGlobalTokenByTokenCommand extends Command |
||
13 | { |
||
14 | /** |
||
15 | * The console command name. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $name = 'tokens:global-prolongation {token} {day?}'; |
||
20 | |||
21 | /** |
||
22 | * The console command description. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $description = 'Продлить срок действия глобального токена ' . |
||
27 | '(tokens:global-prolongation {token} {day?})'; |
||
28 | |||
29 | /** |
||
30 | * The console command signature. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $signature = 'tokens:global-prolongation {token} {day?}'; |
||
35 | |||
36 | /** |
||
37 | * @var Composer |
||
38 | */ |
||
39 | public Composer $composer; |
||
40 | |||
41 | /** |
||
42 | * @var TokenManager |
||
43 | */ |
||
44 | public TokenManager $TokenManager; |
||
45 | |||
46 | /** |
||
47 | * Create a new command instance. |
||
48 | */ |
||
49 | public function __construct(TokenManager $TokenManager) |
||
50 | { |
||
51 | parent::__construct(); |
||
52 | $this->TokenManager = $TokenManager; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * Execute the command. |
||
57 | * |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public function handle() |
||
73 | } |
||
74 | } |
||
75 |