Add a new element to 'CustomDataPatches'

@param \AgentSIB\Diadoc\Api\Proto\Events\CustomDataPatch $value
778099
public function addCustomDataPatches(\AgentSIB\Diadoc\Api\Proto\Events\CustomDataPatch $value)
    {
        if ($this->CustomDataPatches === null) {
            $this->CustomDataPatches = new \Protobuf\MessageCollection();
        }

        $this->CustomDataPatches->add($value);
    }
1161639
public function append($value)
    {
        if (!$value instanceof Argument) {
            throw new \InvalidArgumentException(sprintf('Controller arguments must be valid %s objects.', Argument::class), 1187953786);
        }
        $this->offsetSet(null, $value);
    }
351244
public function add($attributeCode, $value, array $context = null)
    {
        $attribute = $this->getAttribute($attributeCode);

        $method = 'add'.ucfirst($attributeCode);
        if (method_exists($this, $method)) {
            return $this->$method($value, $context);
        }

        return $this->addValueData($attribute, $value, $context);
    }
981927
public function addStructuredDataAttachments(\AgentSIB\Diadoc\Api\Proto\Events\StructuredDataAttachment $value)
    {
        if ($this->StructuredDataAttachments === null) {
            $this->StructuredDataAttachments = new \Protobuf\MessageCollection();
        }

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

        $this->SelectedDepartmentIds->add($value);
    }
190801
public function addEditDocumentPacketCommands(\AgentSIB\Diadoc\Api\Proto\Events\EditDocumentPacketCommand $value)
    {
        if ($this->EditDocumentPacketCommands === null) {
            $this->EditDocumentPacketCommands = new \Protobuf\MessageCollection();
        }

        $this->EditDocumentPacketCommands->add($value);
    }
1011301
public function push($value)
    {
        $this->checkType($value);
        $data = &$this->getDataPlaceHolder();
        array_push($data, $value);
    }
1276940
public function addValue($value)
    {
        if ($this->datatype == 'string') {
            if (is_string($value) == false) {
                throw new InvalidArgumentException('The value(' . $value . ') is not string but the restriction demands it');
            }
        } elseif ($this->datatype == 'integer') {
            // The value comes as string from the wsdl
            if (is_string($value)) {
                $value = intval($value);
            }

            if (is_int($value) == false) {
                throw new InvalidArgumentException('The value(' . $value . ') is not int but the restriction demands it');
            }
        } else {
            if ($value == null) {
                throw new InvalidArgumentException('Value(' . $value . ') is null');
            }
        }

        $this->values[] = $value;
    }
479836
protected function addSequentialNode(DOMElement $element, $value): void
    {
        if (empty($element->nodeValue)) {
            $element->nodeValue = \htmlspecialchars($value);
            return;
        }

        $child = $this->element($element->nodeName);
        $child->nodeValue = \htmlspecialchars($value);
        $element->parentNode->appendChild($child);
    }
1229470
public function setData($name, $value)
    {
        if (!is_null($this->new)) {
            //====================================================================//
            // Impact Block Data Array
            $this->new->data[$name] = $value;
        }

        return $this;
    }
448861
public function addData($value, $key = null) {
        if (!isset($key) && is_object($value)) {
            $key = get_class($value);
        }
        return $this->addDataInternal($value, $key);
    }
1026260
protected function addData($name, $value)
    {
        if (!empty($name)) {
            if (is_array($value)) {
                $this->dataDocument->addArray(self::DATA_PATH_ROOT, $value, $name);
            } elseif ($value instanceof DOMNodeList) {
                $this->dataDocument->copyNodes(self::DATA_PATH_ROOT, $value);
            } elseif ($value instanceof Library\Dom) {
                $this->dataDocument->copyNodes(self::DATA_PATH_ROOT, $value->getNodes('/'));
            } elseif (is_object($value)) {
                $this->dataDocument->addObject(self::DATA_PATH_ROOT, $value, $name);
            } else {
                $this->dataDocument->addNode(self::DATA_PATH_ROOT, $name, $value);
            }
        }
    }
1287058
protected function setIdAttr($value)
    {
        if (!is_null($value) && !preg_match('/^[0-9]+$/D', $value)) {
            throw new InvalidIdException('Invalid id: ' . $value);
        }

        $this->id = $value;
    }
391087
public function addPriceListAgreements(\AgentSIB\Diadoc\Api\Proto\Events\NonformalizedAttachment $value)
    {
        if ($this->PriceListAgreements === null) {
            $this->PriceListAgreements = new \Protobuf\MessageCollection();
        }

        $this->PriceListAgreements->add($value);
    }
872729
public function setCreatedAt($value)
    {
        if (! is_null($column = $this->getCreatedAtColumn())) {
            $this->setAttribute($column, $value);
        }
    }
291362
public function addCertificateRegistries(\AgentSIB\Diadoc\Api\Proto\Events\NonformalizedAttachment $value)
    {
        if ($this->CertificateRegistries === null) {
            $this->CertificateRegistries = new \Protobuf\MessageCollection();
        }

        $this->CertificateRegistries->add($value);
    }
102621
public function insertAt(int $index, $value)
    {
        $array = $this->reindex()->asArray();

        Exception\InvalidArgumentException::verify(
            $index <= count($array),
            'The supplied index must not be greater than the amount of elements: expecting <= %s, %s given',
            count($array), $index
        );

        array_splice($array, $index, 0, [$value]);
        $this->updateElements(
            $this->scheme->createOrderedMap(
                $this->scheme->arrayIterator($array)
            )
        );
    }