mail_calendar_sync/lib/Db/LogEntry.php
2026-02-09 23:02:34 -05:00

51 lines
1.6 KiB
PHP

<?php
declare(strict_types=1);
namespace OCA\MailCalendarSync\Db;
use OCP\AppFramework\Db\Entity;
/**
* @method string getUserId()
* @method void setUserId(string $userId)
* @method string getEventUid()
* @method void setEventUid(string $eventUid)
* @method string|null getEventSummary()
* @method void setEventSummary(?string $eventSummary)
* @method string getAction()
* @method void setAction(string $action)
* @method string|null getAttendeeEmail()
* @method void setAttendeeEmail(?string $attendeeEmail)
* @method string|null getFromEmail()
* @method void setFromEmail(?string $fromEmail)
* @method string|null getMessage()
* @method void setMessage(?string $message)
* @method string|null getCreatedAt()
* @method void setCreatedAt(?string $createdAt)
*/
class LogEntry extends Entity {
protected string $userId = '';
protected string $eventUid = '';
protected ?string $eventSummary = null;
protected string $action = '';
protected ?string $attendeeEmail = null;
protected ?string $fromEmail = null;
protected ?string $message = null;
protected ?string $createdAt = null;
public function toArray(): array {
return [
'id' => $this->getId(),
'eventUid' => $this->getEventUid(),
'eventSummary' => $this->getEventSummary(),
'action' => $this->getAction(),
'attendeeEmail' => $this->getAttendeeEmail(),
'fromEmail' => $this->getFromEmail(),
'message' => $this->getMessage(),
'createdAt' => $this->getCreatedAt(),
];
}
}