public function addEvent(
        ContactClient $contactClient = null,
        $type = null,
        Contact $contact = null,
        $logs = null,
        $message = null,
        $integrationEntityId = null
    ) {
        $event = new EventEntity();
        $event->setDateAdded(new \DateTime());
        if ($type) {
            $event->setType($type);
        }
        if ($contactClient) {
            $event->setContactClientId($contactClient->getId());
        }
        if ($contact) {
            $event->setContact($contact);
        }
        if ($logs) {
            $event->setLogs($logs);
        }
        if ($message) {
            $event->setMessage($message);
        }
        if ($integrationEntityId) {
            $event->setIntegrationEntityId($integrationEntityId);
        }

        $this->getEventRepository()->saveEntity($event);
    }