Completed
Push — master ( cbe94a...9757e4 )
by Amine
01:43
created

VersionCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
A execute() 0 5 1
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 execute()
14
    {
15
        $command = $this->parent();
16
        $this->console()->line("<info>{$command->name()}</info> version <info>{$command->version()}</info>");
17
    }
18
}
19