Add a new element to 'ProformaInvoices'

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

        $this->DocumentSignatures->add($value);
    }
792197
public function setDocument(\AgentSIB\Diadoc\Api\Proto\Docflow\DocumentWithDocflow $value)
    {
        $this->Document = $value;
    }
564075
public function addReceipts(\AgentSIB\Diadoc\Api\Proto\Events\ReceiptAttachment $value)
    {
        if ($this->Receipts === null) {
            $this->Receipts = new \Protobuf\MessageCollection();
        }

        $this->Receipts->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);
    }
291362
public function addCertificateRegistries(\AgentSIB\Diadoc\Api\Proto\Events\NonformalizedAttachment $value)
    {
        if ($this->CertificateRegistries === null) {
            $this->CertificateRegistries = new \Protobuf\MessageCollection();
        }

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

        $this->SelectedDepartmentIds->add($value);
    }
78071
public function addRevocationRequests(\AgentSIB\Diadoc\Api\Proto\Events\RevocationRequestAttachment $value)
    {
        if ($this->RevocationRequests === null) {
            $this->RevocationRequests = new \Protobuf\MessageCollection();
        }

        $this->RevocationRequests->add($value);
    }
978986
public function setInvoiceCorrectionInfo(\AgentSIB\Diadoc\Api\Proto\Docflow\InvoiceCorrectionDocumentInfo $value = null)
    {
        $this->InvoiceCorrectionInfo = $value;
    }
270274
public function addFileToGenerate($value)
    {
        if ($this->file_to_generate === null) {
            $this->file_to_generate = new \Protobuf\ScalarCollection();
        }

        $this->file_to_generate->add($value);
    }
524915
public function setInvoiceStatus(\AgentSIB\Diadoc\Api\Proto\Documents\InvoiceDocument\InvoiceStatus $value = null)
    {
        $this->InvoiceStatus = $value;
    }
392822
protected function appendValueToElementToSend($value, \DOMElement $element)
    {
        if ($value instanceof Element) {
            $this->appendElementToElementToSend($value, $element);
        } elseif (is_array($value)) {
            $this->appendValuesToElementToSend($value, $element);
        } elseif (!empty($value)) {
            $element->appendChild(self::getDom()->createTextNode($value));
        }

        return $this;
    }
1372474
public function addMethod(\google\protobuf\MethodDescriptorProto $value)
    {
        if ($this->method === null) {
            $this->method = new \Protobuf\MessageCollection();
        }

        $this->method->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);
    }
391087
public function addPriceListAgreements(\AgentSIB\Diadoc\Api\Proto\Events\NonformalizedAttachment $value)
    {
        if ($this->PriceListAgreements === null) {
            $this->PriceListAgreements = new \Protobuf\MessageCollection();
        }

        $this->PriceListAgreements->add($value);
    }
1121411
public function addRequests(\AgentSIB\Diadoc\Api\Proto\Docflow\GetDocflowRequest $value)
    {
        if ($this->Requests === null) {
            $this->Requests = new \Protobuf\MessageCollection();
        }

        $this->Requests->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);
    }