Add a new element to 'CustomsDeclarations'

@param \AgentSIB\Diadoc\Api\Proto\Invoicing\CustomsDeclaration $value
356107
public function addCustomsDeclarations(\AgentSIB\Diadoc\Api\Proto\Invoicing\CustomsDeclaration $value)
    {
        if ($this->CustomsDeclarations === null) {
            $this->CustomsDeclarations = new \Protobuf\MessageCollection();
        }

        $this->CustomsDeclarations->add($value);
    }
488912
public function AddCustomHeader($name, $value=null) {
	if ($value === null) {
		// Value passed in as name:value
		$this->CustomHeader[] = explode(':', $name, 2);
	} else {
		$this->CustomHeader[] = array($name, $value);
	}
  }
500377
public function addConstructorValue($value)
        {
            $endPoint =& $this->_getEndPoint();

            if (!isset($endPoint['args'])) {
                $endPoint['args'] = array();
            }

            $endPoint['args'][] = array(
                'type' => 'value',
                'item' => $value
            );

            return $this;
        }
1167488
public function setOfficial(\AgentSIB\Diadoc\Api\Proto\Invoicing\Official $value = null)
    {
        $this->Official = $value;
    }
644232
public function add($value)
    {
        if (! $value instanceof SpecificationInterface) {
            throw new InvalidArgumentException(sprintf(
                '"%s" does not implement "%s"!',
                (is_object($value)) ? get_class($value) : $value,
                SpecificationInterface::class
            ));
        }

        return parent::add($value);
    }
658440
protected function addSequentialNode(DOMElement $element, $value)
    {
        if (empty($element->nodeValue)) {
            $element->nodeValue = htmlspecialchars($value);

            return;
        }

        $child = $element->cloneNode();
        $child->nodeValue = htmlspecialchars($value);
        $element->parentNode->appendChild($child);
    }
619863
public function addDocuments(\AgentSIB\Diadoc\Api\Proto\Events\DocumentToPatch $value)
    {
        if ($this->Documents === null) {
            $this->Documents = new \Protobuf\MessageCollection();
        }

        $this->Documents->add($value);
    }
817891
public function addCustomData(\AgentSIB\Diadoc\Api\Proto\CustomDataItem $value)
    {
        if ($this->CustomData === null) {
            $this->CustomData = new \Protobuf\MessageCollection();
        }

        $this->CustomData->add($value);
    }
737125
public function addAcceptanceCertificates(\AgentSIB\Diadoc\Api\Proto\Events\AcceptanceCertificateAttachment $value)
    {
        if ($this->AcceptanceCertificates === null) {
            $this->AcceptanceCertificates = new \Protobuf\MessageCollection();
        }

        $this->AcceptanceCertificates->add($value);
    }
822901
public function setSupplyPerformedBy(\AgentSIB\Diadoc\Api\Proto\Invoicing\Official $value = null)
    {
        $this->SupplyPerformedBy = $value;
    }
1172821
public function addInitialDocumentIds(\AgentSIB\Diadoc\Api\Proto\DocumentId $value)
    {
        if ($this->InitialDocumentIds === null) {
            $this->InitialDocumentIds = new \Protobuf\MessageCollection();
        }

        $this->InitialDocumentIds->add($value);
    }
1360363
public function setExtension($value)
    {
        if (!in_array($value, self::allowedTypes(), true)) {
            throw new DomainException(sprintf(self::MSG_UNEXPECTED_EXTENSION, implode(', ', self::allowedTypes())));
        }

        return $this->setAttribute('extension', $value);
    }
544489
public function addResolutionRequestDenials(\AgentSIB\Diadoc\Api\Proto\Events\ResolutionRequestDenialAttachment $value)
    {
        if ($this->ResolutionRequestDenials === null) {
            $this->ResolutionRequestDenials = new \Protobuf\MessageCollection();
        }

        $this->ResolutionRequestDenials->add($value);
    }
1295059
public function addAddDocumentsToPacket(\AgentSIB\Diadoc\Api\Proto\DocumentId $value)
    {
        if ($this->AddDocumentsToPacket === null) {
            $this->AddDocumentsToPacket = new \Protobuf\MessageCollection();
        }

        $this->AddDocumentsToPacket->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);
    }
102990
public function setTaxRate(\AgentSIB\Diadoc\Api\Proto\Invoicing\TaxRate $value)
    {
        $this->TaxRate = $value;
    }
999490
public function addDepartments(\AgentSIB\Diadoc\Api\Proto\Department $value)
    {
        if ($this->Departments === null) {
            $this->Departments = new \Protobuf\MessageCollection();
        }

        $this->Departments->add($value);
    }