describeDataCategoryGroupStructures::__construct()   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 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class describeDataCategoryGroupStructures
6
{
7
    /**
8
     * @var DataCategoryGroupSobjectTypePair
9
     */
10
    protected $pairs = null;
11
12
    /**
13
     * @var boolean
14
     */
15
    protected $topCategoriesOnly = null;
16
17
    /**
18
     * @param DataCategoryGroupSobjectTypePair $pairs
19
     * @param boolean $topCategoriesOnly
20
     */
21
    public function __construct($pairs = null, $topCategoriesOnly = null)
22
    {
23
        $this->pairs = $pairs;
24
        $this->topCategoriesOnly = $topCategoriesOnly;
25
    }
26
27
    /**
28
     * @return DataCategoryGroupSobjectTypePair
29
     */
30
    public function getPairs()
31
    {
32
        return $this->pairs;
33
    }
34
35
    /**
36
     * @param DataCategoryGroupSobjectTypePair $pairs
37
     * @return \SForce\Wsdl\describeDataCategoryGroupStructures
38
     */
39
    public function setPairs($pairs)
40
    {
41
        $this->pairs = $pairs;
42
        return $this;
43
    }
44
45
    /**
46
     * @return boolean
47
     */
48
    public function getTopCategoriesOnly()
49
    {
50
        return $this->topCategoriesOnly;
51
    }
52
53
    /**
54
     * @param boolean $topCategoriesOnly
55
     * @return \SForce\Wsdl\describeDataCategoryGroupStructures
56
     */
57
    public function setTopCategoriesOnly($topCategoriesOnly)
58
    {
59
        $this->topCategoriesOnly = $topCategoriesOnly;
60
        return $this;
61
    }
62
}
63