Completed
Pull Request — 5.1 (#2266)
by
unknown
12:07
created

PageTab   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 70
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getInternalName() 0 4 1
A getTabTitle() 0 4 1
A getFormTypeClass() 0 4 1
A getPosition() 0 4 1
1
<?php
2
3
namespace Kunstmaan\NodeBundle\ValueObject;
4
5
class PageTab
6
{
7
    /**
8
     * @var string
9
     */
10
    private $internalName;
11
12
    /**
13
     * @var string
14
     */
15
    private $tabTitle;
16
17
    /**
18
     * @var string
19
     */
20
    private $formTypeClass;
21
22
    /**
23
     * @var int|null
24
     */
25
    private $position;
26
27
    /**
28
     * PageTab constructor.
29
     *
30
     * @param string   $internalName
31
     * @param string   $tabTitle
32
     * @param string   $formTypeClass
33
     * @param int|null $position
34
     */
35
    public function __construct($internalName, $tabTitle, $formTypeClass, $position = null)
36
    {
37
        $this->internalName = $internalName;
38
        $this->tabTitle = $tabTitle;
39
        $this->formTypeClass = $formTypeClass;
40
        $this->position = $position;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getInternalName()
47
    {
48
        return $this->internalName;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getTabTitle()
55
    {
56
        return $this->tabTitle;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getFormTypeClass()
63
    {
64
        return $this->formTypeClass;
65
    }
66
67
    /**
68
     * @return int|null
69
     */
70
    public function getPosition()
71
    {
72
        return $this->position;
73
    }
74
}
75