Completed
Push — master ( 833af1...b53336 )
by Amine
10s
created

VersionCommand::setupSubCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace Tarsana\Command\Commands;
2
3
use Tarsana\Command\SubCommand;
4
5
class VersionCommand extends SubCommand {
6
7
    protected function init()
8
    {
9
        $this->name('Version')
10
             ->description('Shows the version.');
11
    }
12
13
    protected function setupSubCommands()
14
    {
15
        return $this;
16
    }
17
18
    protected function execute()
19
    {
20
        $command = $this->parent();
21
        $this->console()->line("<info>{$command->name()}</info> version <info>{$command->version()}</info>");
22
    }
23
}
24