Add a new element to 'SelectedDepartmentIds'

@param string $value
173304
public function addSelectedDepartmentIds($value)
    {
        if ($this->SelectedDepartmentIds === null) {
            $this->SelectedDepartmentIds = new \Protobuf\ScalarCollection();
        }

        $this->SelectedDepartmentIds->add($value);
    }
246102
public function addOption($value, $text)
    {
        if ($this->optionlist instanceOf Binding)
            return;
        $this->optionlist[$value] = $text;
    }
256500
public function setPromotionIds($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['PromotionIds']['FieldValue'] = $value;
        return $this;
    }
656390
public function setValue(string $value = null) : Element
    {
        if (!is_null($value)) {
            $tmp = preg_replace('/[^\d]/', '', $value);
            if (strlen($tmp)) {
                $value = $tmp;
                if ($value{0} != '0') {
                    $value = "0$value";
                }
            }
        }
        return parent::setValue($value);
    }
1318335
protected function addElement_submit ($value, $customElementConfig=array())
    {
        $defaultElementConfig = array(
            'attributes' => array(
                'value'      => $value,
            ),
        );
        $elementConfig = array_replace_recursive(
            $defaultElementConfig,
            $customElementConfig
        );

        $this->addElement_submit_configArray($elementConfig);
    }
314508
public function removeDealerBrandId($value)
    {
        $targetArray = array();
        foreach ($this->getDealerBrandIds() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setDealerBrandIds($targetArray);

        return $this;
    }
947630
public function removeDealerShedulesId($value)
    {
        $targetArray = array();
        foreach ($this->getDealerShedulesIds() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setDealerShedulesIds($targetArray);

        return $this;
    }
583339
private function addItemOption($value, $options)
    {
        $this->options['options'] = ArrayHelper::merge($this->options['options'], [$value => $options]);
    }
190801
public function addEditDocumentPacketCommands(\AgentSIB\Diadoc\Api\Proto\Events\EditDocumentPacketCommand $value)
    {
        if ($this->EditDocumentPacketCommands === null) {
            $this->EditDocumentPacketCommands = new \Protobuf\MessageCollection();
        }

        $this->EditDocumentPacketCommands->add($value);
    }
114089
public function addValue($value)
        {
            if (is_array($value)) {
                foreach ($value as $single_value) {
                    $this->addValue($single_value);
                }
            } else {
                if ($value !== null) {
                    $this->values[] = $this->getDatabaseValue($value);
                }
            }
        }
28841
public function setValue(string $value) : void
    {
        $this->value = $value;
        foreach ((array)$this as $option) {
            if ($option->getValue() == $value) {
                $option->selected();
            } else {
                $option->unselected();
            }
        }
    }
36370
public function addSubdescriptorValue($value)
    {
        if (is_null($this->_subdescriptor)) {
            $this->_subdescriptor = [];
        }
        if (!empty($value) && !in_array($value, $this->_subdescriptor)) {
            $this->_subdescriptor[] = $value;
        }

        return false;
    }
155483
public function addPersonImageId($value)
    {
        $currentArray = $this->getPersonImageIds();
        $currentArray []= $value;
        $this->setPersonImageIds($currentArray);

        return $this;
    }
276111
public function addPersonTeamLinkId($value)
    {
        $currentArray = $this->getPersonTeamLinkIds();
        $currentArray []= $value;
        $this->setPersonTeamLinkIds($currentArray);

        return $this;
    }
938540
public function addOption(string $value, string $text) : FormElement
    {
        $this->options[$value] = $text;
        return $this;
    }
710013
public function addItem($value)
    {
        if ($value instanceof LayoutItem) {
            $value = $value->jsonSerialize();
        } elseif (!is_array($value)) {
            throw new DomainException('Invalid layout item');
        }

        $items = $this->getAttribute('items') ?: [];
        $items[] = $value;

        return $this->setAttribute('items', $items);
    }
1208975
public void add(Value value) {
	if (values == null) values = new LinkedList();
	values.add(value);
    }