Passed
Push — master ( 1e8995...e0bd2f )
by Tomasz
02:02
created

FinalStep   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getState() 0 3 1
A getData() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Aggrego\Domain\Model\ProgressiveBoard\Step\Steps;
6
7
use Aggrego\Domain\Model\ProgressiveBoard\Step\State;
8
use Aggrego\Domain\Model\ProgressiveBoard\Step\Step;
9
use Aggrego\Domain\Shared\ValueObject\Data;
10
11
final class FinalStep implements Step
12
{
13
    /** @var Data */
14
    private $data;
15
16
    public function __construct(Data $data)
17
    {
18
        $this->data = $data;
19
    }
20
21
    public function getState(): State
22
    {
23
        return new State(State::FINAL);
24
    }
25
26
    public function getData(): Data
27
    {
28
        return $this->data;
29
    }
30
}
31