VersionCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 4
c 1
b 0
f 1
dl 0
loc 11
rs 10

1 Method

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