public function addEncryptedInvoices(\AgentSIB\Diadoc\Api\Proto\Events\EncryptedInvoiceAttachment $value)
    {
        if ($this->EncryptedInvoices === null) {
            $this->EncryptedInvoices = new \Protobuf\MessageCollection();
        }

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