SearchLayoutButton::getApiName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class SearchLayoutButton
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $apiName = null;
11
12
    /**
13
     * @var string
14
     */
15
    protected $label = null;
16
17
    /**
18
     * @param string $apiName
19
     * @param string $label
20
     */
21
    public function __construct($apiName = null, $label = null)
22
    {
23
        $this->apiName = $apiName;
24
        $this->label = $label;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getApiName()
31
    {
32
        return $this->apiName;
33
    }
34
35
    /**
36
     * @param string $apiName
37
     * @return \SForce\Wsdl\SearchLayoutButton
38
     */
39
    public function setApiName($apiName)
40
    {
41
        $this->apiName = $apiName;
42
        return $this;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getLabel()
49
    {
50
        return $this->label;
51
    }
52
53
    /**
54
     * @param string $label
55
     * @return \SForce\Wsdl\SearchLayoutButton
56
     */
57
    public function setLabel($label)
58
    {
59
        $this->label = $label;
60
        return $this;
61
    }
62
}
63