Passed
Push — master ( 204e2b...dee98e )
by Gallice
03:34
created

InvalidStepException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
nc 1
cc 1
eloc 3
nop 2
crap 2
1
<?php
2
3
namespace Tgallice\Wit\Exception;
4
5
class InvalidStepException extends \RuntimeException
6
{
7
    /**
8
     * @var mixed
9
     */
10
    private $stepData;
11
12
    /**
13
     * @param string $message
14
     * @param mixed $stepData
15
     */
16
    public function __construct($message, $stepData = null)
17
    {
18
        parent::__construct($message);
19
20
        $this->stepData = $stepData;
21
    }
22
23
    /**
24
     * @return mixed
25
     */
26
    public function getStepData()
27
    {
28
        return $this->stepData;
29
    }
30
}
31