VersionCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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