ExecutionAbortedException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A output() 0 7 2
1
<?php
2
/**
3
 * @author Gerard van Helden <[email protected]>
4
 * @copyright Zicht Online <http://zicht.nl>
5
 */
6
7
namespace Zicht\Tool\Container;
8
9
use Symfony\Component\Console\Output\OutputInterface;
10
11
/**
12
 * Thrown whenever a command exits with an 'abort' exit code.
13
 */
14
class ExecutionAbortedException extends \RuntimeException implements VerboseException
15
{
16
    /**
17
     * @{inheritDoc}
18
     */
19
    public function output(OutputInterface $output)
20
    {
21
        $output->writeln('<comment>Aborted</comment>');
22
        if ($output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) {
23
            $output->writeln($this->getMessage());
24
        }
25
    }
26
}
27