Initial Version
This commit is contained in:
15
shared/lib/Chrono/Event/EventAvailabilityTypes.php
Normal file
15
shared/lib/Chrono/Event/EventAvailabilityTypes.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventAvailabilityTypes: string {
|
||||
case Free = 'free';
|
||||
case Busy = 'busy';
|
||||
}
|
||||
50
shared/lib/Chrono/Event/EventCommonObject.php
Normal file
50
shared/lib/Chrono/Event/EventCommonObject.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use DateInterval;
|
||||
use DateTime;
|
||||
use DateTimeImmutable;
|
||||
use DateTimeZone;
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class EventCommonObject extends JsonSerializableObject {
|
||||
|
||||
public int|null $sequence = null;
|
||||
public DateTimeZone|null $timeZone = null;
|
||||
public DateTime|DateTimeImmutable|null $startsOn = null;
|
||||
public DateTimeZone|null $startsTZ = null;
|
||||
public DateTime|DateTimeImmutable|null $endsOn = null;
|
||||
public DateTimeZone|null $endsTZ = null;
|
||||
public DateInterval|null $duration = null;
|
||||
public bool|null $timeless = false;
|
||||
public string|null $label = null;
|
||||
public string|null $description = null;
|
||||
public EventLocationPhysicalCollection $locationsPhysical;
|
||||
public EventLocationVirtualCollection $locationsVirtual;
|
||||
public EventAvailabilityTypes|null $availability = null;
|
||||
public EventSensitivityTypes|null $sensitivity = null;
|
||||
public int|null $priority = null;
|
||||
public string|null $color = null;
|
||||
public EventTagCollection $tags;
|
||||
public EventOrganizerObject $organizer;
|
||||
public EventParticipantCollection $participants;
|
||||
public EventNotificationCollection $notifications;
|
||||
|
||||
public function __construct() {
|
||||
$this->participants = new EventParticipantCollection();
|
||||
$this->locationsPhysical = new EventLocationPhysicalCollection();
|
||||
$this->locationsVirtual = new EventLocationVirtualCollection();
|
||||
$this->notifications = new EventNotificationCollection();
|
||||
$this->organizer = new EventOrganizerObject();
|
||||
$this->tags = new EventTagCollection();
|
||||
}
|
||||
|
||||
}
|
||||
20
shared/lib/Chrono/Event/EventLocationPhysicalCollection.php
Normal file
20
shared/lib/Chrono/Event/EventLocationPhysicalCollection.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class EventLocationPhysicalCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, EventLocationPhysicalObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
22
shared/lib/Chrono/Event/EventLocationPhysicalObject.php
Normal file
22
shared/lib/Chrono/Event/EventLocationPhysicalObject.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class EventLocationPhysicalObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $identifier = null;
|
||||
public string|null $label = null;
|
||||
public string|null $description = null;
|
||||
public string|null $relation = null; // e.g. start, end of event
|
||||
public string|null $timeZone = null;
|
||||
|
||||
}
|
||||
20
shared/lib/Chrono/Event/EventLocationVirtualCollection.php
Normal file
20
shared/lib/Chrono/Event/EventLocationVirtualCollection.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class EventLocationVirtualCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, EventLocationVirtualObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
22
shared/lib/Chrono/Event/EventLocationVirtualObject.php
Normal file
22
shared/lib/Chrono/Event/EventLocationVirtualObject.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class EventLocationVirtualObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $identifier = null;
|
||||
public string|null $label = null;
|
||||
public string|null $description = null;
|
||||
public string|null $relation = null;
|
||||
public string|null $location = null;
|
||||
|
||||
}
|
||||
20
shared/lib/Chrono/Event/EventMutationCollection.php
Normal file
20
shared/lib/Chrono/Event/EventMutationCollection.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class EventMutationCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, EventMutationObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
21
shared/lib/Chrono/Event/EventMutationObject.php
Normal file
21
shared/lib/Chrono/Event/EventMutationObject.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use DateTime;
|
||||
use DateTimeImmutable;
|
||||
|
||||
class EventMutationObject extends EventCommonObject {
|
||||
|
||||
public DateTime|DateTimeImmutable|null $mutationId = null;
|
||||
public string|null $mutationTz = null;
|
||||
public bool|null $mutationExclusion = null;
|
||||
|
||||
}
|
||||
15
shared/lib/Chrono/Event/EventNotificationAnchorTypes.php
Normal file
15
shared/lib/Chrono/Event/EventNotificationAnchorTypes.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventNotificationAnchorTypes: string {
|
||||
case Start = 'start';
|
||||
case End = 'end';
|
||||
}
|
||||
20
shared/lib/Chrono/Event/EventNotificationCollection.php
Normal file
20
shared/lib/Chrono/Event/EventNotificationCollection.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class EventNotificationCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, EventNotificationObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
24
shared/lib/Chrono/Event/EventNotificationObject.php
Normal file
24
shared/lib/Chrono/Event/EventNotificationObject.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use DateInterval;
|
||||
use DateTime;
|
||||
use DateTimeImmutable;
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class EventNotificationObject extends JsonSerializableObject {
|
||||
public string|null $identifier = null;
|
||||
public EventNotificationTypes|null $Type = null;
|
||||
public EventNotificationPatterns|null $Pattern = null;
|
||||
public DateTime|DateTimeImmutable|null $When = null;
|
||||
public EventNotificationAnchorTypes|null $Anchor = null;
|
||||
public DateInterval|null $Offset = null;
|
||||
}
|
||||
16
shared/lib/Chrono/Event/EventNotificationPatterns.php
Normal file
16
shared/lib/Chrono/Event/EventNotificationPatterns.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventNotificationPatterns: string {
|
||||
case Absolute = 'absolute';
|
||||
case Relative = 'relative';
|
||||
case Unknown = 'unknown';
|
||||
}
|
||||
16
shared/lib/Chrono/Event/EventNotificationTypes.php
Normal file
16
shared/lib/Chrono/Event/EventNotificationTypes.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventNotificationTypes: string {
|
||||
case Visual = 'visual';
|
||||
case Audible = 'audible';
|
||||
case Email = 'email';
|
||||
}
|
||||
31
shared/lib/Chrono/Event/EventObject.php
Normal file
31
shared/lib/Chrono/Event/EventObject.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
class EventObject extends EventCommonObject {
|
||||
|
||||
// Meta Information
|
||||
public string $type = 'event';
|
||||
public int $version = 1;
|
||||
public string|null $urid = null;
|
||||
public ?DateTimeInterface $created = null;
|
||||
public ?DateTimeInterface $modified = null;
|
||||
|
||||
public EventOccurrenceObject|null $pattern = null;
|
||||
public EventMutationCollection $mutations;
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->mutations = new EventMutationCollection();
|
||||
}
|
||||
|
||||
}
|
||||
36
shared/lib/Chrono/Event/EventOccurrenceObject.php
Normal file
36
shared/lib/Chrono/Event/EventOccurrenceObject.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use DateTime;
|
||||
use DateTimeImmutable;
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class EventOccurrenceObject extends JsonSerializableObject {
|
||||
public EventOccurrencePatternTypes|null $pattern = null; // Pattern - Absolute / Relative
|
||||
public EventOccurrencePrecisionTypes|null $precision = null; // Time Interval
|
||||
public int|null $interval = null; // Time Interval - Every 2 Days / Every 4 Weeks / Every 1 Year
|
||||
public int|null $iterations = null; // Number of recurrence
|
||||
public DateTime|DateTimeImmutable|null $concludes = null; // Date to stop recurrence
|
||||
public String|null $scale = null; // calendar system in which this recurrence rule operates
|
||||
public array $onDayOfWeek = [];
|
||||
public array $onDayOfMonth = [];
|
||||
public array $onDayOfYear = [];
|
||||
public array $onWeekOfMonth = [];
|
||||
public array $onWeekOfYear = [];
|
||||
public array $onMonthOfYear = [];
|
||||
public array $onHour = [];
|
||||
public array $onMinute = [];
|
||||
public array $onSecond = [];
|
||||
public array $onPosition = [];
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
}
|
||||
15
shared/lib/Chrono/Event/EventOccurrencePatternTypes.php
Normal file
15
shared/lib/Chrono/Event/EventOccurrencePatternTypes.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventOccurrencePatternTypes: string {
|
||||
case Absolute = 'absolute';
|
||||
case Relative = 'relative';
|
||||
}
|
||||
20
shared/lib/Chrono/Event/EventOccurrencePrecisionTypes.php
Normal file
20
shared/lib/Chrono/Event/EventOccurrencePrecisionTypes.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventOccurrencePrecisionTypes: string {
|
||||
case Yearly = 'yearly';
|
||||
case Monthly = 'monthly';
|
||||
case Weekly = 'weekly';
|
||||
case Daily = 'daily';
|
||||
case Hourly = 'hourly';
|
||||
case Minutely = 'minutely';
|
||||
case Secondly = 'secondly';
|
||||
}
|
||||
20
shared/lib/Chrono/Event/EventOrganizerObject.php
Normal file
20
shared/lib/Chrono/Event/EventOrganizerObject.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class EventOrganizerObject extends JsonSerializableObject {
|
||||
|
||||
public EventParticipantRealm|null $realm = null; // E - external, I - internal
|
||||
public string|null $address = null;
|
||||
public string|null $name = null;
|
||||
|
||||
}
|
||||
20
shared/lib/Chrono/Event/EventParticipantCollection.php
Normal file
20
shared/lib/Chrono/Event/EventParticipantCollection.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class EventParticipantCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, EventParticipantObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
31
shared/lib/Chrono/Event/EventParticipantObject.php
Normal file
31
shared/lib/Chrono/Event/EventParticipantObject.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class EventParticipantObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $identifier = null;
|
||||
public EventParticipantRealm|null $realm = null; // E - external, I - internal
|
||||
public string|null $name = null;
|
||||
public string|null $description = null;
|
||||
public string|null $language = null;
|
||||
public string|null $address = null;
|
||||
public EventParticipantTypes|null $type = null;
|
||||
public EventParticipantStatusTypes|null $status = null;
|
||||
public string|null $comment = null;
|
||||
public EventParticipantRoleCollection $roles;
|
||||
|
||||
public function __construct() {
|
||||
$this->roles = new EventParticipantRoleCollection();
|
||||
}
|
||||
|
||||
}
|
||||
15
shared/lib/Chrono/Event/EventParticipantRealm.php
Normal file
15
shared/lib/Chrono/Event/EventParticipantRealm.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventParticipantRealm: string {
|
||||
case Internal = 'I';
|
||||
case External = 'E';
|
||||
}
|
||||
20
shared/lib/Chrono/Event/EventParticipantRoleCollection.php
Normal file
20
shared/lib/Chrono/Event/EventParticipantRoleCollection.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class EventParticipantRoleCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, EventParticipantRoleTypes::class);
|
||||
}
|
||||
|
||||
}
|
||||
19
shared/lib/Chrono/Event/EventParticipantRoleTypes.php
Normal file
19
shared/lib/Chrono/Event/EventParticipantRoleTypes.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventParticipantRoleTypes: string {
|
||||
case Owner = 'owner';
|
||||
case Chair = 'chair';
|
||||
case Attendee = 'attendee';
|
||||
case Optional = 'optional';
|
||||
case Informational = 'informational';
|
||||
case Contact = 'contact';
|
||||
}
|
||||
18
shared/lib/Chrono/Event/EventParticipantStatusTypes.php
Normal file
18
shared/lib/Chrono/Event/EventParticipantStatusTypes.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventParticipantStatusTypes: string {
|
||||
case None = 'none';
|
||||
case Accepted = 'accepted';
|
||||
case Declined = 'declined';
|
||||
case Tentative = 'tentative';
|
||||
case Delegated = 'delegated';
|
||||
}
|
||||
18
shared/lib/Chrono/Event/EventParticipantTypes.php
Normal file
18
shared/lib/Chrono/Event/EventParticipantTypes.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventParticipantTypes: string {
|
||||
case Unknown = 'unknown';
|
||||
case Individual = 'individual';
|
||||
case Group = 'group';
|
||||
case Resource = 'resource';
|
||||
case Location = 'location';
|
||||
}
|
||||
16
shared/lib/Chrono/Event/EventSensitivityTypes.php
Normal file
16
shared/lib/Chrono/Event/EventSensitivityTypes.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
enum EventSensitivityTypes: string {
|
||||
case Public = 'public';
|
||||
case Private = 'private';
|
||||
case Secret = 'secret';
|
||||
}
|
||||
20
shared/lib/Chrono/Event/EventTagCollection.php
Normal file
20
shared/lib/Chrono/Event/EventTagCollection.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Chrono\Event;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class EventTagCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user