Add a new element to 'Events'

@param \AgentSIB\Diadoc\Api\Proto\Events\BoxEvent $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);
    }
279396
public function addRequestedSignatureRejections(\AgentSIB\Diadoc\Api\Proto\Events\RequestedSignatureRejection $value)
    {
        if ($this->RequestedSignatureRejections === null) {
            $this->RequestedSignatureRejections = new \Protobuf\MessageCollection();
        }

        $this->RequestedSignatureRejections->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);
    }
1295059
public function addAddDocumentsToPacket(\AgentSIB\Diadoc\Api\Proto\DocumentId $value)
    {
        if ($this->AddDocumentsToPacket === null) {
            $this->AddDocumentsToPacket = new \Protobuf\MessageCollection();
        }

        $this->AddDocumentsToPacket->add($value);
    }
1065747
public function addFiles(\AgentSIB\Diadoc\Api\Proto\CloudSignFile $value)
    {
        if ($this->Files === null) {
            $this->Files = new \Protobuf\MessageCollection();
        }

        $this->Files->add($value);
    }
290523
protected function addCollectionNode(DOMElement $element, $value): void
    {
        if ($element->childNodes->length === 0) {
            $this->convert($element, $value);
            return;
        }

        /**
         * @var $child DOMElement
         */
        $child = $this->element($element->nodeName);
        $element->parentNode->appendChild($child);
        $this->convert($child, $value);
    }
1325154
function setAction( $value, $params=FALSE ) {
    $this->action['value']  = $value;
    $this->action['params'] = $this->_setParams( $params );
  }
416206
public function addSubordinateDocumentIds(\AgentSIB\Diadoc\Api\Proto\DocumentId $value)
    {
        if ($this->SubordinateDocumentIds === null) {
            $this->SubordinateDocumentIds = new \Protobuf\MessageCollection();
        }

        $this->SubordinateDocumentIds->add($value);
    }
1227058
public function addCertificates(\AgentSIB\Diadoc\Api\Proto\Certificate $value)
    {
        if ($this->Certificates === null) {
            $this->Certificates = new \Protobuf\MessageCollection();
        }

        $this->Certificates->add($value);
    }
821882
public function addElementsStyle($param, $value) {
		foreach ($this->getElements() as $element) {
			if ($element instanceof Tag) {
				$element->addStyle($param, $value);
			}
		}
		
		return $this;
	}
92893
public function addDocumentPatchedContents(\AgentSIB\Diadoc\Api\Proto\Events\DocumentPatchedContent $value)
    {
        if ($this->DocumentPatchedContents === null) {
            $this->DocumentPatchedContents = new \Protobuf\MessageCollection();
        }

        $this->DocumentPatchedContents->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);
    }
1361551
public function addForwardDocumentEvents(\AgentSIB\Diadoc\Api\Proto\ForwardDocumentEvent $value)
    {
        if ($this->ForwardDocumentEvents === null) {
            $this->ForwardDocumentEvents = new \Protobuf\MessageCollection();
        }

        $this->ForwardDocumentEvents->add($value);
    }
843567
public static function event($value): void
    {
        if (false === self::message($value)) {
            throw new Exception\InvalidEvent($value);
        }
    }
607309
private function convertElement(\DOMElement $element, $value)
    {
        if (! is_array($value)) {
            $value = htmlspecialchars(static::convertToString($value));
            $element->nodeValue = $value;

            return;
        }

        foreach ($value as $key => $data) {
            $child = $this->document->createElement($key);
            $element->appendChild($child);
            $this->convertElement($child, $data);
        }
    }
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);
    }
932282
public function addCustomDocumentAttachments(\AgentSIB\Diadoc\Api\Proto\Events\CustomDocumentAttachment $value)
    {
        if ($this->CustomDocumentAttachments === null) {
            $this->CustomDocumentAttachments = new \Protobuf\MessageCollection();
        }

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