Add a new element to 'DraftDocuments'

@param \AgentSIB\Diadoc\Api\Proto\Events\DraftDocumentToPatch $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);
    }
1079605
public function addEntityPatches(\AgentSIB\Diadoc\Api\Proto\Events\EntityPatch $value)
    {
        if ($this->EntityPatches === null) {
            $this->EntityPatches = new \Protobuf\MessageCollection();
        }

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

        $this->PriceListAgreements->add($value);
    }
1028234
protected function Add( $value )
	{
	    switch ( $value->GetValueCode() )
	    {
	        case DayTimeDurationProxyFactory::Code:
	        	/**
	        	 * @var DayTimeDurationProxy $value
	        	 */
	        	// Clone the DateValue contained in the proxy or the original is changed
	        	$clone = new TimeValue( clone $this->_value->Value, ! $this->_value->IsLocal );
	        	return new TimeProxy( TimeValue::AddDayTimeDuration( $clone, $value->getValue() ) );
	        	// return new TimeProxy( TimeValue::Add( $this->_value, /* DayTimeDurationValue */ $value->getValue() ) );

	        default:
	            throw XPath2Exception::withErrorCodeAndParams( "XPTY0004", Resources::BinaryOperatorNotDefined,
					array(
						"op:add",
						SequenceType::WithTypeCodeAndCardinality( SequenceType::GetXmlTypeCodeFromObject( $this->_value), XmlTypeCardinality::One ),
						SequenceType::WithTypeCodeAndCardinality( SequenceType::GetXmlTypeCodeFromObject( $value->getValue() ), XmlTypeCardinality::One )
					)
				);
	    }
	}
1290202
public function add($value)
    {
        foreach ($this->positions($value) as $position) {
            $this->setBitAtPosition($position);
        }
    }
728402
public function addSigners(\AgentSIB\Diadoc\Api\Proto\Invoicing\Signers\ExtendedSigner $value)
    {
        if ($this->Signers === null) {
            $this->Signers = new \Protobuf\MessageCollection();
        }

        $this->Signers->add($value);
    }
123029
protected function addCollectionNode(DOMElement $element, $value)
    {
        if ($element->childNodes->length == 0) {
            $this->convertElement($element, $value);

            return;
        }

        $child = $element->cloneNode();
        $element->parentNode->appendChild($child);
        $this->convertElement($child, $value);
    }
177506
public function setOriginalInvoiceDateAndNumber(\AgentSIB\Diadoc\Api\Proto\Docflow\DocumentDateAndNumber $value)
    {
        $this->OriginalInvoiceDateAndNumber = $value;
    }
818075
public function addPaymentDocuments(\AgentSIB\Diadoc\Api\Proto\Invoicing\PaymentDocumentInfo $value)
    {
        if ($this->PaymentDocuments === null) {
            $this->PaymentDocuments = new \Protobuf\MessageCollection();
        }

        $this->PaymentDocuments->add($value);
    }
1361470
public function addDocument($type, $value)
    {
        if ($type && $value) {
            if (count($this->documents) == 0) {
                $document = new PagSeguroSenderDocument($type, $value);
                $this->documents[] = $document;
            }
        }
    }
781837
public function addRemoveDocumentsFromPacket(\AgentSIB\Diadoc\Api\Proto\DocumentId $value)
    {
        if ($this->RemoveDocumentsFromPacket === null) {
            $this->RemoveDocumentsFromPacket = new \Protobuf\MessageCollection();
        }

        $this->RemoveDocumentsFromPacket->add($value);
    }
1259928
public function setDocumentInfo(\AgentSIB\Diadoc\Api\Proto\Docflow\DocumentInfo $value = null)
    {
        $this->DocumentInfo = $value;
    }
794624
public function addFile(\google\protobuf\FileDescriptorProto $value)
    {
        if ($this->file === null) {
            $this->file = new \Protobuf\MessageCollection();
        }

        $this->file->add($value);
    }
79047
protected function addNode(DOMElement $element, $key, $value): void
    {
        $key   = \str_replace(' ', '-', $key);
        $child = $this->element($key);
        $element->appendChild($child);
        $this->convert($child, $value);
    }
681201
public function setDocumentStatus(\AgentSIB\Diadoc\Api\Proto\Documents\UniversalTransferDocument\UniversalTransferDocumentStatus $value = null)
    {
        $this->DocumentStatus = $value;
    }
520629
public function setDocflow(\AgentSIB\Diadoc\Api\Proto\Docflow\Docflow $value = null)
    {
        $this->Docflow = $value;
    }