| Total Complexity | 4 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class CreateGlobalTokenCommand extends Command |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The console command name. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $name = 'tokens:global-create {title} {day}'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The console command description. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $description = 'Создать новый токен (tokens:create {title} {количество дней действия или 0 - бессрочно})'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The console command signature. |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $signature = 'tokens:global-create {title} {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) |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Execute the command. |
||
| 57 | * |
||
| 58 | * @return mixed |
||
| 59 | */ |
||
| 60 | public function handle() |
||
| 72 |