DescribeLayoutItem   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 152
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 29
c 1
b 0
f 0
dl 0
loc 152
rs 10
wmc 13

13 Methods

Rating   Name   Duplication   Size   Complexity  
A getLayoutComponents() 0 3 1
A setPlaceholder() 0 4 1
A getLabel() 0 3 1
A setLabel() 0 4 1
A setEditableForNew() 0 4 1
A getEditableForNew() 0 3 1
A __construct() 0 6 1
A setEditableForUpdate() 0 4 1
A setRequired() 0 4 1
A getPlaceholder() 0 3 1
A getEditableForUpdate() 0 3 1
A setLayoutComponents() 0 4 1
A getRequired() 0 3 1
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class DescribeLayoutItem
6
{
7
    /**
8
     * @var boolean
9
     */
10
    protected $editableForNew = null;
11
12
    /**
13
     * @var boolean
14
     */
15
    protected $editableForUpdate = null;
16
17
    /**
18
     * @var string
19
     */
20
    protected $label = null;
21
22
    /**
23
     * @var DescribeLayoutComponent[]
24
     */
25
    protected $layoutComponents = null;
26
27
    /**
28
     * @var boolean
29
     */
30
    protected $placeholder = null;
31
32
    /**
33
     * @var boolean
34
     */
35
    protected $required = null;
36
37
    /**
38
     * @param boolean $editableForNew
39
     * @param boolean $editableForUpdate
40
     * @param boolean $placeholder
41
     * @param boolean $required
42
     */
43
    public function __construct($editableForNew = null, $editableForUpdate = null, $placeholder = null, $required = null)
44
    {
45
        $this->editableForNew = $editableForNew;
46
        $this->editableForUpdate = $editableForUpdate;
47
        $this->placeholder = $placeholder;
48
        $this->required = $required;
49
    }
50
51
    /**
52
     * @return boolean
53
     */
54
    public function getEditableForNew()
55
    {
56
        return $this->editableForNew;
57
    }
58
59
    /**
60
     * @param boolean $editableForNew
61
     * @return \SForce\Wsdl\DescribeLayoutItem
62
     */
63
    public function setEditableForNew($editableForNew)
64
    {
65
        $this->editableForNew = $editableForNew;
66
        return $this;
67
    }
68
69
    /**
70
     * @return boolean
71
     */
72
    public function getEditableForUpdate()
73
    {
74
        return $this->editableForUpdate;
75
    }
76
77
    /**
78
     * @param boolean $editableForUpdate
79
     * @return \SForce\Wsdl\DescribeLayoutItem
80
     */
81
    public function setEditableForUpdate($editableForUpdate)
82
    {
83
        $this->editableForUpdate = $editableForUpdate;
84
        return $this;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getLabel()
91
    {
92
        return $this->label;
93
    }
94
95
    /**
96
     * @param string $label
97
     * @return \SForce\Wsdl\DescribeLayoutItem
98
     */
99
    public function setLabel($label)
100
    {
101
        $this->label = $label;
102
        return $this;
103
    }
104
105
    /**
106
     * @return DescribeLayoutComponent[]
107
     */
108
    public function getLayoutComponents()
109
    {
110
        return $this->layoutComponents;
111
    }
112
113
    /**
114
     * @param DescribeLayoutComponent[] $layoutComponents
115
     * @return \SForce\Wsdl\DescribeLayoutItem
116
     */
117
    public function setLayoutComponents(array $layoutComponents = null)
118
    {
119
        $this->layoutComponents = $layoutComponents;
120
        return $this;
121
    }
122
123
    /**
124
     * @return boolean
125
     */
126
    public function getPlaceholder()
127
    {
128
        return $this->placeholder;
129
    }
130
131
    /**
132
     * @param boolean $placeholder
133
     * @return \SForce\Wsdl\DescribeLayoutItem
134
     */
135
    public function setPlaceholder($placeholder)
136
    {
137
        $this->placeholder = $placeholder;
138
        return $this;
139
    }
140
141
    /**
142
     * @return boolean
143
     */
144
    public function getRequired()
145
    {
146
        return $this->required;
147
    }
148
149
    /**
150
     * @param boolean $required
151
     * @return \SForce\Wsdl\DescribeLayoutItem
152
     */
153
    public function setRequired($required)
154
    {
155
        $this->required = $required;
156
        return $this;
157
    }
158
}
159