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

VersionCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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