Completed
Push — master ( 9d44a5...d0e085 )
by WEBEWEB
01:42
created

AbstractCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A newStyle() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\CoreBundle\Command;
13
14
use Symfony\Component\Console\Command\Command;
15
use Symfony\Component\Console\Input\InputInterface;
16
use Symfony\Component\Console\Output\OutputInterface;
17
use Symfony\Component\Console\Style\StyleInterface;
18
use Symfony\Component\Console\Style\SymfonyStyle;
19
20
/**
21
 * Abstract command.
22
 *
23
 * @author webeweb <https://github.com/webeweb/>
24
 * @package WBW\Bundle\CoreBundle\Command
25
 * @abstract
26
 */
27
abstract class AbstractCommand extends Command {
28
29
    /**
30
     * Create a style.
31
     *
32
     * @param InputInterface $input The input.
33
     * @param OutputInterface $output The ouptut.
34
     * @return StyleInterface Returns the style.
35
     */
36
    protected function newStyle(InputInterface $input, OutputInterface $output) {
37
        return new SymfonyStyle($input, $output);
38
    }
39
40
}
41