| Total Complexity | 7 |
| Total Lines | 79 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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) |
||
| 84 | } |
||
| 85 | } |
||
| 86 |