Completed
Push — master ( cfc46b...5a6c91 )
by Thomas
09:47 queued 07:37
created

SeparateProcessException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of php-task library.
5
 *
6
 * (c) php-task
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Task\TaskBundle\Executor;
13
14
/**
15
 * Exception wrapper which transports the serialized exception from console to the runner.
16
 */
17
class SeparateProcessException extends \Exception
18
{
19
    /**
20
     * @var string
21
     */
22
    private $errorOutput;
23
24
    /**
25
     * @param string $errorOutput
26
     */
27 5
    public function __construct($errorOutput)
28
    {
29 5
        $this->errorOutput = $errorOutput;
30 5
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35 4
    public function __toString()
36
    {
37 4
        return $this->errorOutput;
38
    }
39
}
40