Install   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 23
rs 10
c 1
b 1
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 8 1
A execute() 0 5 1
1
<?php
2
3
namespace uuf6429\ElderBrother\Console\Command;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
use uuf6429\ElderBrother\Vcs\Manager;
8
9
class Install extends CommandAbstract
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    protected function configure()
15
    {
16
        $this
17
            ->setName('install')
18
            ->setDescription('Installs VCS hooks.')
19
            ->setHelp('This command sets up project VCS hooks.')
20
        ;
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function execute(InputInterface $input, OutputInterface $output)
27
    {
28
        $manager = new Manager($this->logger);
29
        $manager->install();
30
    }
31
}
32