ExecutionAbortedException::output()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
crap 6
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