Passed
Push — master ( 517bd8...f7cc98 )
by Attila
06:55
created

VersionCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 16
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
1
<?php
2
/**
3
 * Contains the VersionCommand class.
4
 *
5
 * @copyright   Copyright (c) 2017 Attila Fulop
6
 * @author      Attila Fulop
7
 * @license     MIT
8
 * @since       2017-06-14
9
 *
10
 */
11
12
13
namespace Konekt\Concord\Console\Commands;
14
15
use Illuminate\Console\Command;
16
use Konekt\Concord\Contracts\Concord;
17
18
class VersionCommand extends Command
19
{
20
    /** @var string  */
21
    protected $name = 'concord:version';
22
23
    /** @var string  */
24
    protected $description = 'Displays Concord version';
25
26
    /**
27
     * Execute the console command.
28
     *
29
     * @return mixed
30
     */
31
    public function handle(Concord $concord)
32
    {
33
        $this->info($concord->getVersion());
34
    }
35
}
36