Initial Version
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user