AllFailedException::getReasons()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace mpyw\Co;
4
5
class AllFailedException extends \RuntimeException
6
{
7
    private $reasons;
8
9
    /**
10
     * Constructor.
11
     * @param string   $message Dummy message.
12
     * @param int      $code    Always zero.
13
     * @param mixed    $reasons Reasons why jobs are failed.
14
     */
15 3
    public function __construct($message, $code, $reasons)
16 3
    {
17 3
        parent::__construct($message, $code);
18 3
        $this->reasons = $reasons;
19 3
    }
20
21
    /**
22
     * Get value.
23
     * @return mixed
24
     */
25 3
    public function getReasons()
26 3
    {
27 3
        return $this->reasons;
28
    }
29
}
30