DownloadMyriadContact   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 26
ccs 5
cts 5
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
3
namespace MyriadDataStore\Console\Commands;
4
5
use Illuminate\Console\Command;
6
7
class DownloadMyriadContact extends Command
8
{
9
    /**
10
     * The name and signature of the console command.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'myriad-download:contact
15
    {id : Myriad Contact Id}
16
    ';
17
18
    /**
19
     * The console command description.
20
     *
21
     * @var string
22
     */
23
    protected $description = 'Download/Update myriad contact';
24
25 1
    public function handle()
26
    {
27 1
        $myriadContactID = (int) $this->argument('id');
28
29 1
        (new \MyriadDataStore\Actions\DownloadMyriadContact())
30 1
            ->execute($myriadContactID);
31
32 1
        return 0;
33
    }
34
}
35