DescribeCompactLayoutsResult   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 79
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 15
c 1
b 0
f 0
dl 0
loc 79
rs 10
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setDefaultCompactLayoutId() 0 4 1
A getCompactLayouts() 0 3 1
A __construct() 0 4 1
A getDefaultCompactLayoutId() 0 3 1
A getRecordTypeCompactLayoutMappings() 0 3 1
A setCompactLayouts() 0 4 1
A setRecordTypeCompactLayoutMappings() 0 4 1
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class DescribeCompactLayoutsResult
6
{
7
    /**
8
     * @var DescribeCompactLayout[]
9
     */
10
    protected $compactLayouts = null;
11
12
    /**
13
     * @var ID
14
     */
15
    protected $defaultCompactLayoutId = null;
16
17
    /**
18
     * @var RecordTypeCompactLayoutMapping[]
19
     */
20
    protected $recordTypeCompactLayoutMappings = null;
21
22
    /**
23
     * @param DescribeCompactLayout[] $compactLayouts
24
     * @param ID $defaultCompactLayoutId
25
     */
26
    public function __construct(array $compactLayouts = null, $defaultCompactLayoutId = null)
27
    {
28
        $this->compactLayouts = $compactLayouts;
29
        $this->defaultCompactLayoutId = $defaultCompactLayoutId;
30
    }
31
32
    /**
33
     * @return DescribeCompactLayout[]
34
     */
35
    public function getCompactLayouts()
36
    {
37
        return $this->compactLayouts;
38
    }
39
40
    /**
41
     * @param DescribeCompactLayout[] $compactLayouts
42
     * @return \SForce\Wsdl\DescribeCompactLayoutsResult
43
     */
44
    public function setCompactLayouts(array $compactLayouts)
45
    {
46
        $this->compactLayouts = $compactLayouts;
47
        return $this;
48
    }
49
50
    /**
51
     * @return ID
52
     */
53
    public function getDefaultCompactLayoutId()
54
    {
55
        return $this->defaultCompactLayoutId;
56
    }
57
58
    /**
59
     * @param ID $defaultCompactLayoutId
60
     * @return \SForce\Wsdl\DescribeCompactLayoutsResult
61
     */
62
    public function setDefaultCompactLayoutId($defaultCompactLayoutId)
63
    {
64
        $this->defaultCompactLayoutId = $defaultCompactLayoutId;
65
        return $this;
66
    }
67
68
    /**
69
     * @return RecordTypeCompactLayoutMapping[]
70
     */
71
    public function getRecordTypeCompactLayoutMappings()
72
    {
73
        return $this->recordTypeCompactLayoutMappings;
74
    }
75
76
    /**
77
     * @param RecordTypeCompactLayoutMapping[] $recordTypeCompactLayoutMappings
78
     * @return \SForce\Wsdl\DescribeCompactLayoutsResult
79
     */
80
    public function setRecordTypeCompactLayoutMappings(array $recordTypeCompactLayoutMappings = null)
81
    {
82
        $this->recordTypeCompactLayoutMappings = $recordTypeCompactLayoutMappings;
83
        return $this;
84
    }
85
}
86