3 namespace wcf\system\label\
object\type
;
8 * @author Alexander Ebert
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\Label\Object\Type
22 * object type is a category
25 public $isCategory = false;
43 public $optionValue = 0;
46 * Creates a new LabelObjectType object.
48 * @param string $label
49 * @param int $objectID
51 * @param bool $isCategory
53 public function __construct($label, $objectID = 0, $depth = 0, $isCategory = false)
55 $this->depth
= $depth;
56 $this->isCategory
= $isCategory;
57 $this->label
= $label;
58 $this->objectID
= $objectID;
66 public function getLabel()
72 * Returns the object id.
75 public function getObjectID()
77 return $this->objectID
;
81 * Returns true, if object type is a category.
85 public function isCategory()
87 return $this->isCategory
;
91 * Returns indentation level.
95 public function getDepth()
103 * @param int $optionValue
105 public function setOptionValue($optionValue)
107 $this->optionValue
= $optionValue;
111 * Returns option value.
115 public function getOptionValue()
117 return $this->optionValue
;