WorkflowDTO   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setTransition() 0 3 1
A getTransition() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) 2019, Wesley O. Nichols
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Wesnick\WorkflowBundle\Model;
13
14
/**
15
 * Default WorkflowDTO.
16
 *
17
 * @author Wesley O. Nichols <[email protected]>
18
 */
19
class WorkflowDTO
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $transition;
25
26
    /**
27
     * @return string
28
     */
29
    public function getTransition(): string
30
    {
31
        return $this->transition;
32
    }
33
34
    /**
35
     * @param string $transition
36
     */
37
    public function setTransition(string $transition): void
38
    {
39
        $this->transition = $transition;
40
    }
41
}
42