Completed
Push — master ( 804716...5e83b7 )
by Tomasz
03:36
created

FinalStep   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getState() 0 3 1
A getData() 0 3 1
A readyToTransformation() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Aggrego\Domain\ProgressiveBoard\Step\Steps;
6
7
use Aggrego\Domain\ProgressiveBoard\Step\State;
8
use Aggrego\Domain\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
    public function readyToTransformation(): bool
32
    {
33
        return false;
34
    }
35
}
36