Total Complexity | 3 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class RateCommand extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'currencylayer:rate |
||
16 | {source : Source currency code} |
||
17 | {date : Date for currency rates} |
||
18 | {currencies* : Target currency codes}'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Gets live rates for currencies'; |
||
26 | |||
27 | /** |
||
28 | * Create a new command instance. |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function __construct() |
||
33 | { |
||
34 | parent::__construct(); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Execute the console command. |
||
39 | * |
||
40 | * @param Currencylayer $currencylayer |
||
41 | * |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function handle(Currencylayer $currencylayer) |
||
57 | } |
||
58 | } |
||
60 |