Add a new element to 'EditDocumentPacketCommands'

@param \AgentSIB\Diadoc\Api\Proto\Events\EditDocumentPacketCommand $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);
    }
970890
public function addProformaInvoices(\AgentSIB\Diadoc\Api\Proto\Events\BasicDocumentAttachment $value)
    {
        if ($this->ProformaInvoices === null) {
            $this->ProformaInvoices = new \Protobuf\MessageCollection();
        }

        $this->ProformaInvoices->add($value);
    }
966574
public function addEvents(\AgentSIB\Diadoc\Api\Proto\Events\BoxEvent $value)
    {
        if ($this->Events === null) {
            $this->Events = new \Protobuf\MessageCollection();
        }

        $this->Events->add($value);
    }
766420
public function addDraftDocuments(\AgentSIB\Diadoc\Api\Proto\Events\DraftDocumentToPatch $value)
    {
        if ($this->DraftDocuments === null) {
            $this->DraftDocuments = new \Protobuf\MessageCollection();
        }

        $this->DraftDocuments->add($value);
    }
521483
public function addChoice($value, $description)
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->choices[] = array(
                "key" => $value,
                "value" => Splash::trans(trim($description))
            );
        }

        return $this;
    }
1107215
public function add($value)
    {
        if (!$value instanceof EmailBodyPart) {
            throw new InvalidArgumentException(
                sprintf(
                    '%s only accepts instances of %s.',
                    __FUNCTION__, EmailBodyPart::class
                )
            );
        }

        return parent::add($value);
    }
657089
public function addDocumentIds(\AgentSIB\Diadoc\Api\Proto\DocumentId $value)
    {
        if ($this->DocumentIds === null) {
            $this->DocumentIds = new \Protobuf\MessageCollection();
        }

        $this->DocumentIds->add($value);
    }
39235
public function setDocumentStatus(\AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentStatus $value = null)
    {
        $this->DocumentStatus = $value;
    }
177506
public function setOriginalInvoiceDateAndNumber(\AgentSIB\Diadoc\Api\Proto\Docflow\DocumentDateAndNumber $value)
    {
        $this->OriginalInvoiceDateAndNumber = $value;
    }
46892
public function addResolutions(\AgentSIB\Diadoc\Api\Proto\Events\ResolutionAttachment $value)
    {
        if ($this->Resolutions === null) {
            $this->Resolutions = new \Protobuf\MessageCollection();
        }

        $this->Resolutions->add($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);
    }
1274422
public function setNewValue($field, $value)
    {
        $this->assertValidField($field);

        $this->documentChangeSet[$field][1] = $value;
    }
672180
public function addGlobalCommandArgument($value)
    {
        if (!in_array($value, $this->globalCommandArguments, true)) {
            $this->globalCommandArguments[] = $value;
        }
    }
619863
public function addDocuments(\AgentSIB\Diadoc\Api\Proto\Events\DocumentToPatch $value)
    {
        if ($this->Documents === null) {
            $this->Documents = new \Protobuf\MessageCollection();
        }

        $this->Documents->add($value);
    }
206665
public function addEncryptedXmlAcceptanceCertificateSellerTitles(\AgentSIB\Diadoc\Api\Proto\Events\EncryptedXmlDocumentAttachment $value)
    {
        if ($this->EncryptedXmlAcceptanceCertificateSellerTitles === null) {
            $this->EncryptedXmlAcceptanceCertificateSellerTitles = new \Protobuf\MessageCollection();
        }

        $this->EncryptedXmlAcceptanceCertificateSellerTitles->add($value);
    }
583339
private function addItemOption($value, $options)
    {
        $this->options['options'] = ArrayHelper::merge($this->options['options'], [$value => $options]);
    }
1256465
public function addElementInList(
        string $field,
        $value,
        int $type
    ): self {
        $this->changes[] = [
            'field' => $field,
            'type' => $type | self::TYPE_ARRAY_ELEMENT_ADD,
            'value' => $value,
        ];

        return $this;
    }