CompletedStep   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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