Status::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 2
1
<?php
2
3
/**
4
 * This file is part of slick/console package
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Slick\Console\Console\Command;
11
12
use Symfony\Component\Console\Command\Command;
13
use Symfony\Component\Console\Input\InputInterface;
14
use Symfony\Component\Console\Output\OutputInterface;
15
16
/**
17
 * Status
18
 * 
19
 * @package Slick\Console\Console\Command
20
 * @author  Filipe Silva <[email protected]>
21
 */
22
class Status extends Command
23
{
24
25
    /**
26
     * Configure command
27
     */
28
    protected function configure()
29
    {
30
        $this
31
            ->setName('status')
32
            ->setDescription('Check the Slick Console installation status')
33
        ;
34
    }
35
36
    /**
37
     * Executes the command
38
     * 
39
     * @param InputInterface $input
40
     * @param OutputInterface $output
41
     * 
42
     * @return null|int null or 0 if everything went fine, or an error code
43
     */
44
    protected function execute(InputInterface $input, OutputInterface $output)
45
    {
46
        $text = "Slick console installed successfully!";
47
        $output->writeln("<info>$text</info>");
48
        return 0;
49
    }
50
}