name; } /** * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getLabel() { return $this->label; } /** * @param string $label */ public function setLabel($label) { $this->label = $label; } /** * @return int */ public function getOrder() { return $this->order; } /** * @param int $order */ public function setOrder($order) { $this->order = $order; } /** * @return bool */ public function isMandatory() { return $this->is_mandatory; } /** * @param bool $is_mandatory */ public function setIsMandatory($is_mandatory) { $this->is_mandatory = $is_mandatory; } /** * @return TrackTagGroupAllowedTag[] */ public function getAllowedTags() { return $this->allowed_tags; } /** * @param TrackTagGroupAllowedTag[] $allowed_tags */ public function setAllowedTags($allowed_tags) { $this->allowed_tags = $allowed_tags; } public function __construct() { parent::__construct(); $this->allowed_tags = new ArrayCollection; $this->is_mandatory = false; } public function clearAllowedTags() { $this->allowed_tags->clear(); } /** * @param Tag $tag * @param bool $is_default */ public function addTag(Tag $tag, $is_default = false) { $allowed_tag = new TrackTagGroupAllowedTag(); $allowed_tag->setTag($tag); $allowed_tag->setTrackTagGroup($this); $allowed_tag->setIsDefault($is_default); $this->allowed_tags->add($allowed_tag); } }