DescribeCompactLayout::setName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class DescribeCompactLayout
6
{
7
    /**
8
     * @var DescribeLayoutButton[]
9
     */
10
    protected $actions = null;
11
12
    /**
13
     * @var DescribeLayoutItem[]
14
     */
15
    protected $fieldItems = null;
16
17
    /**
18
     * @var ID
19
     */
20
    protected $id = null;
21
22
    /**
23
     * @var DescribeLayoutItem[]
24
     */
25
    protected $imageItems = null;
26
27
    /**
28
     * @var string
29
     */
30
    protected $label = null;
31
32
    /**
33
     * @var string
34
     */
35
    protected $name = null;
36
37
    /**
38
     * @var string
39
     */
40
    protected $objectType = null;
41
42
    /**
43
     * @param ID $id
44
     * @param string $label
45
     * @param string $name
46
     * @param string $objectType
47
     */
48
    public function __construct($id = null, $label = null, $name = null, $objectType = null)
49
    {
50
        $this->id = $id;
51
        $this->label = $label;
52
        $this->name = $name;
53
        $this->objectType = $objectType;
54
    }
55
56
    /**
57
     * @return DescribeLayoutButton[]
58
     */
59
    public function getActions()
60
    {
61
        return $this->actions;
62
    }
63
64
    /**
65
     * @param DescribeLayoutButton[] $actions
66
     * @return \SForce\Wsdl\DescribeCompactLayout
67
     */
68
    public function setActions(array $actions = null)
69
    {
70
        $this->actions = $actions;
71
        return $this;
72
    }
73
74
    /**
75
     * @return DescribeLayoutItem[]
76
     */
77
    public function getFieldItems()
78
    {
79
        return $this->fieldItems;
80
    }
81
82
    /**
83
     * @param DescribeLayoutItem[] $fieldItems
84
     * @return \SForce\Wsdl\DescribeCompactLayout
85
     */
86
    public function setFieldItems(array $fieldItems = null)
87
    {
88
        $this->fieldItems = $fieldItems;
89
        return $this;
90
    }
91
92
    /**
93
     * @return ID
94
     */
95
    public function getId()
96
    {
97
        return $this->id;
98
    }
99
100
    /**
101
     * @param ID $id
102
     * @return \SForce\Wsdl\DescribeCompactLayout
103
     */
104
    public function setId($id)
105
    {
106
        $this->id = $id;
107
        return $this;
108
    }
109
110
    /**
111
     * @return DescribeLayoutItem[]
112
     */
113
    public function getImageItems()
114
    {
115
        return $this->imageItems;
116
    }
117
118
    /**
119
     * @param DescribeLayoutItem[] $imageItems
120
     * @return \SForce\Wsdl\DescribeCompactLayout
121
     */
122
    public function setImageItems(array $imageItems = null)
123
    {
124
        $this->imageItems = $imageItems;
125
        return $this;
126
    }
127
128
    /**
129
     * @return string
130
     */
131
    public function getLabel()
132
    {
133
        return $this->label;
134
    }
135
136
    /**
137
     * @param string $label
138
     * @return \SForce\Wsdl\DescribeCompactLayout
139
     */
140
    public function setLabel($label)
141
    {
142
        $this->label = $label;
143
        return $this;
144
    }
145
146
    /**
147
     * @return string
148
     */
149
    public function getName()
150
    {
151
        return $this->name;
152
    }
153
154
    /**
155
     * @param string $name
156
     * @return \SForce\Wsdl\DescribeCompactLayout
157
     */
158
    public function setName($name)
159
    {
160
        $this->name = $name;
161
        return $this;
162
    }
163
164
    /**
165
     * @return string
166
     */
167
    public function getObjectType()
168
    {
169
        return $this->objectType;
170
    }
171
172
    /**
173
     * @param string $objectType
174
     * @return \SForce\Wsdl\DescribeCompactLayout
175
     */
176
    public function setObjectType($objectType)
177
    {
178
        $this->objectType = $objectType;
179
        return $this;
180
    }
181
}
182