CompletedStep::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace MeadSteve\Tale\Execution;
4
5
use MeadSteve\Tale\Steps\Step;
6
7
class CompletedStep
8
{
9
    /**
10
     * @var Step
11
     */
12
    public $step;
13
14
    /**
15
     * @var mixed
16
     */
17
    public $state;
18
19
    /**
20
     * @var string
21
     */
22
    public $stepId;
23
24
    /**
25
     * @param Step $step
26
     * @param mixed $state the state after running the state above
27
     * @param string $stepId
28
     */
29
    public function __construct(Step $step, $state, $stepId)
30
    {
31
        $this->step = $step;
32
        $this->state = $state;
33
        $this->stepId = $stepId;
34
    }
35
}
36