| Total Complexity | 1 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 6 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | class RateCommand extends Command |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The name and signature of the console command. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $signature = 'currencylayer:rate |
||
| 15 | {source : Source currency code} |
||
| 16 | {date : Date for currency rates} |
||
| 17 | {currencies* : Target currency codes}'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The console command description. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $description = 'Gets live rates for currencies'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Execute the console command. |
||
| 28 | * |
||
| 29 | * @param Currencylayer $currencylayer |
||
| 30 | */ |
||
| 31 | public function handle(Currencylayer $currencylayer): void |
||
| 57 |