Completed
Push — 5.6 ( 679697...f4d50c )
by Jeroen
16:35 queued 10:49
created

PagePartAdminConfigurator   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 104
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 72%

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 1
dl 0
loc 104
ccs 18
cts 25
cp 0.72
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getPossiblePagePartTypes() 0 4 1
A setPossiblePagePartTypes() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getInternalName() 0 4 1
A setInternalName() 0 4 1
A getContext() 0 4 1
A setContext() 0 4 1
A getWidgetTemplate() 0 4 1
A setWidgetTemplate() 0 4 1
1
<?php
2
3
namespace Kunstmaan\PagePartBundle\PagePartAdmin;
4
5
/**
6
 * PagePagePartAdminConfigurator
7
 */
8
class PagePartAdminConfigurator extends AbstractPagePartAdminConfigurator
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $name;
14
15
    /**
16
     * @var string
17
     */
18
    protected $internalName;
19
20
    /**
21
     * @var string
22
     */
23
    protected $context;
24
25
    /**
26
     * @var array
27
     */
28
    protected $pagePartTypes;
29
30
    /**
31
     * @var string
32
     */
33
    protected $widgetTemplate;
34
35
    /**
36
     * @return array
37
     */
38 1
    public function getPossiblePagePartTypes()
39
    {
40 1
        return $this->pagePartTypes;
41
    }
42
43 3
    public function setPossiblePagePartTypes(array $pagePartTypes)
44
    {
45 3
        $this->pagePartTypes = $pagePartTypes;
46 3
    }
47
48
    /**
49
     * @return string
50
     */
51 2
    public function getName()
52
    {
53 2
        return $this->name;
54
    }
55
56
    /**
57
     * @param string $name
58
     */
59 3
    public function setName($name)
60
    {
61 3
        $this->name = $name;
62 3
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getInternalName()
68
    {
69
        return $this->internalName;
70
    }
71
72
    /**
73
     * @param string $internalName
74
     */
75 3
    public function setInternalName($internalName)
76
    {
77 3
        $this->internalName = $internalName;
78 3
    }
79
80
    /**
81
     * @return string
82
     */
83 2
    public function getContext()
84
    {
85 2
        return $this->context;
86
    }
87
88
    /**
89
     * @param string $context
90
     */
91 5
    public function setContext($context)
92
    {
93 5
        $this->context = $context;
94 5
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getWidgetTemplate()
100
    {
101
        return $this->widgetTemplate;
102
    }
103
104
    /**
105
     * @param string $widgetTemplate
106
     */
107
    public function setWidgetTemplate($widgetTemplate)
108
    {
109
        $this->widgetTemplate = $widgetTemplate;
110
    }
111
}
112