DataCategory::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 DataCategory
6
{
7
    /**
8
     * @var DataCategory[]
9
     */
10
    protected $childCategories = null;
11
12
    /**
13
     * @var string
14
     */
15
    protected $label = null;
16
17
    /**
18
     * @var string
19
     */
20
    protected $name = null;
21
22
    /**
23
     * @param string $label
24
     * @param string $name
25
     */
26
    public function __construct($label = null, $name = null)
27
    {
28
        $this->label = $label;
29
        $this->name = $name;
30
    }
31
32
    /**
33
     * @return DataCategory[]
34
     */
35
    public function getChildCategories()
36
    {
37
        return $this->childCategories;
38
    }
39
40
    /**
41
     * @param DataCategory[] $childCategories
42
     * @return \SForce\Wsdl\DataCategory
43
     */
44
    public function setChildCategories(array $childCategories = null)
45
    {
46
        $this->childCategories = $childCategories;
47
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getLabel()
54
    {
55
        return $this->label;
56
    }
57
58
    /**
59
     * @param string $label
60
     * @return \SForce\Wsdl\DataCategory
61
     */
62
    public function setLabel($label)
63
    {
64
        $this->label = $label;
65
        return $this;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getName()
72
    {
73
        return $this->name;
74
    }
75
76
    /**
77
     * @param string $name
78
     * @return \SForce\Wsdl\DataCategory
79
     */
80
    public function setName($name)
81
    {
82
        $this->name = $name;
83
        return $this;
84
    }
85
}
86