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

FinalStep::readyToTransformation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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