refactor: people entity properties objects
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\People\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
use KTXF\People\Entity\Property\MediaCollection;
|
||||
use KTXF\People\Entity\Property\MemberCollection;
|
||||
use KTXF\People\Entity\Property\NameSimpleObject;
|
||||
use KTXF\People\Entity\Property\NoteCollection;
|
||||
use KTXF\People\Entity\Property\TagCollection;
|
||||
use KTXF\People\Entity\Property\VirtualLocationCollection;
|
||||
|
||||
class GroupObject extends JsonSerializableObject {
|
||||
|
||||
// Meta Information
|
||||
public string $type = 'group';
|
||||
public int $version = 1;
|
||||
public string|null $urid = null;
|
||||
public ?DateTimeInterface $created = null;
|
||||
public ?DateTimeInterface $modified = null;
|
||||
// Group Information
|
||||
public string|null $label = null;
|
||||
public NameSimpleObject $names;
|
||||
// Membership Information
|
||||
public MemberCollection $members;
|
||||
// Communication Information
|
||||
public VirtualLocationCollection $virtualLocations;
|
||||
// Media Information
|
||||
public MediaCollection $media;
|
||||
// Organizational Information
|
||||
public TagCollection $tags;
|
||||
public NoteCollection $notes;
|
||||
|
||||
public function __construct() {
|
||||
$this->names = new NameSimpleObject();
|
||||
$this->members = new MemberCollection();
|
||||
$this->virtualLocations = new VirtualLocationCollection();
|
||||
$this->media = new MediaCollection();
|
||||
$this->tags = new TagCollection();
|
||||
$this->notes = new NoteCollection();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\People\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
use KTXF\People\Entity\Property\AffiliationCollection;
|
||||
use KTXF\People\Entity\Property\AnniversaryCollection;
|
||||
use KTXF\People\Entity\Property\CryptoCollection;
|
||||
use KTXF\People\Entity\Property\EmailCollection;
|
||||
use KTXF\People\Entity\Property\LanguageCollection;
|
||||
use KTXF\People\Entity\Property\MediaCollection;
|
||||
use KTXF\People\Entity\Property\NameComplexObject;
|
||||
use KTXF\People\Entity\Property\NoteCollection;
|
||||
use KTXF\People\Entity\Property\PhoneCollection;
|
||||
use KTXF\People\Entity\Property\PhysicalLocationCollection;
|
||||
use KTXF\People\Entity\Property\TagCollection;
|
||||
use KTXF\People\Entity\Property\TitleCollection;
|
||||
use KTXF\People\Entity\Property\VirtualLocationCollection;
|
||||
|
||||
class IndividualObject extends JsonSerializableObject {
|
||||
|
||||
// Meta Information
|
||||
public string $type = 'individual';
|
||||
public int $version = 1;
|
||||
public string|null $urid = null;
|
||||
public ?DateTimeInterface $created = null;
|
||||
public ?DateTimeInterface $modified = null;
|
||||
// Personal Information
|
||||
public string|null $label = null;
|
||||
public NameComplexObject $names;
|
||||
public TitleCollection $titles;
|
||||
public AnniversaryCollection $anniversaries;
|
||||
// Location Information
|
||||
public PhysicalLocationCollection $physicalLocations;
|
||||
// Communication Information
|
||||
public PhoneCollection $phones;
|
||||
public EmailCollection $emails;
|
||||
public VirtualLocationCollection $virtualLocations;
|
||||
// Media Information
|
||||
public MediaCollection $media;
|
||||
// Organizations Information
|
||||
public AffiliationCollection $organizations;
|
||||
// Organizational Information
|
||||
public TagCollection $tags;
|
||||
public NoteCollection $notes;
|
||||
// Localization Information
|
||||
public string|null $language = null;
|
||||
public LanguageCollection $languages;
|
||||
// Other Information
|
||||
public CryptoCollection $crypto;
|
||||
|
||||
public function __construct() {
|
||||
$this->names = new NameComplexObject();
|
||||
$this->anniversaries = new AnniversaryCollection();
|
||||
$this->phones = new PhoneCollection();
|
||||
$this->emails = new EmailCollection();
|
||||
$this->physicalLocations = new PhysicalLocationCollection();
|
||||
$this->organizations = new AffiliationCollection();
|
||||
$this->titles = new TitleCollection();
|
||||
$this->tags = new TagCollection();
|
||||
$this->notes = new NoteCollection();
|
||||
$this->crypto = new CryptoCollection();
|
||||
$this->virtualLocations = new VirtualLocationCollection();
|
||||
$this->media = new MediaCollection();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\People\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
use KTXF\People\Entity\Property\CryptoCollection;
|
||||
use KTXF\People\Entity\Property\EmailCollection;
|
||||
use KTXF\People\Entity\Property\MediaCollection;
|
||||
use KTXF\People\Entity\Property\NameSimpleObject;
|
||||
use KTXF\People\Entity\Property\NoteCollection;
|
||||
use KTXF\People\Entity\Property\PhoneCollection;
|
||||
use KTXF\People\Entity\Property\PhysicalLocationCollection;
|
||||
use KTXF\People\Entity\Property\TagCollection;
|
||||
use KTXF\People\Entity\Property\VirtualLocationCollection;
|
||||
|
||||
class OrganizationObject extends JsonSerializableObject {
|
||||
|
||||
// Meta Information
|
||||
public string $type = 'organization';
|
||||
public int $version = 1;
|
||||
public string|null $urid = null;
|
||||
public ?DateTimeInterface $created = null;
|
||||
public ?DateTimeInterface $modified = null;
|
||||
// Organization Information
|
||||
public string|null $label = null;
|
||||
public NameSimpleObject $names;
|
||||
// Location Information
|
||||
public PhysicalLocationCollection $physicalLocations;
|
||||
// Communication Information
|
||||
public PhoneCollection $phones;
|
||||
public EmailCollection $emails;
|
||||
public VirtualLocationCollection $virtualLocations;
|
||||
// Media Information
|
||||
public MediaCollection $media;
|
||||
// Organizational Information
|
||||
public TagCollection $tags;
|
||||
public NoteCollection $notes;
|
||||
// Other Information
|
||||
public CryptoCollection $crypto;
|
||||
|
||||
public function __construct() {
|
||||
$this->names = new NameSimpleObject();
|
||||
$this->physicalLocations = new PhysicalLocationCollection();
|
||||
$this->phones = new PhoneCollection();
|
||||
$this->emails = new EmailCollection();
|
||||
$this->virtualLocations = new VirtualLocationCollection();
|
||||
$this->media = new MediaCollection();
|
||||
$this->tags = new TagCollection();
|
||||
$this->notes = new NoteCollection();
|
||||
$this->crypto = new CryptoCollection();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class AffiliationCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, AffiliationObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class AffiliationObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $label = null;
|
||||
public array|null $units = null;
|
||||
public string|null $sortName = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class AliasCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, AliasObject::class);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class AliasObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $label = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class AnniversaryCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, AnniversaryObject::class);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use DateTimeInterface;
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class AnniversaryObject extends JsonSerializableObject {
|
||||
|
||||
public AnniversaryTypes|null $type = null;
|
||||
public DateTimeInterface|null $when = null;
|
||||
public string|null $location = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
enum AnniversaryTypes: string {
|
||||
case Birth = 'birth';
|
||||
case Death = 'death';
|
||||
case Nuptial = 'nuptial';
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class CryptoCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, CryptoObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class CryptoObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $data = null;
|
||||
public string|null $type = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class EmailCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, EmailObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class EmailObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $address = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class LanguageCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, LanguageObject::class);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class LanguageObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $data = null;
|
||||
public string|null $id = null;
|
||||
public int|null $priority = null;
|
||||
public string|null $context = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class MediaCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, MediaObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class MediaObject extends JsonSerializableObject {
|
||||
|
||||
public string $type = 'Media';
|
||||
public string $kind;
|
||||
public string $uri;
|
||||
public string|null $mediaType = null;
|
||||
public array|null $contexts = null;
|
||||
public int|null $pref = null;
|
||||
public string|null $label = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class MemberCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, MemberObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class MemberObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $entityId = null;
|
||||
public string|null $role = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class NameComplexObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $family = null;
|
||||
public string|null $given = null;
|
||||
public string|null $additional = null;
|
||||
public string|null $prefix = null;
|
||||
public string|null $suffix = null;
|
||||
public string|null $phoneticFamily = null;
|
||||
public string|null $phoneticGiven = null;
|
||||
public string|null $phoneticAdditional = null;
|
||||
public AliasCollection $aliases;
|
||||
|
||||
public function __construct() {
|
||||
$this->aliases = new AliasCollection();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class NameSimpleObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $full = null;
|
||||
public string|null $sort = null;
|
||||
public AliasCollection $aliases;
|
||||
|
||||
public function __construct() {
|
||||
$this->aliases = new AliasCollection();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class NoteCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, NoteObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use DateTimeInterface;
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class NoteObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $content = null;
|
||||
public DateTimeInterface|null $date = null;
|
||||
public string|null $authorUri = null;
|
||||
public string|null $authorName = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class PhoneCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, PhoneObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class PhoneObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $number = null;
|
||||
public string|null $label = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class PhysicalLocationCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, PhysicalLocationObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class PhysicalLocationObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $box = null;
|
||||
public string|null $unit = null;
|
||||
public string|null $street = null;
|
||||
public string|null $locality = null;
|
||||
public string|null $region = null;
|
||||
public string|null $code = null;
|
||||
public string|null $country = null;
|
||||
public string|null $label = null;
|
||||
public string|null $coordinates = null;
|
||||
public string|null $timeZone = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class PronounCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, PronounObject::class);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class PronounObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $pronoun = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class TagCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class TitleCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, TitleObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class TitleObject extends JsonSerializableObject {
|
||||
|
||||
public TitleTypes|null $kind = null;
|
||||
public string|null $label = null;
|
||||
public string|null $relation = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
enum TitleTypes: string {
|
||||
case Title = 't';
|
||||
case Role = 'r';
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableCollection;
|
||||
|
||||
class VirtualLocationCollection extends JsonSerializableCollection {
|
||||
|
||||
public function __construct(array $data = []) {
|
||||
parent::__construct($data, VirtualLocationObject::class, 'string');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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\People\Entity\Property;
|
||||
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class VirtualLocationObject extends JsonSerializableObject {
|
||||
|
||||
public string|null $location = null;
|
||||
public string|null $label = null;
|
||||
public string|null $context = null;
|
||||
public int|null $priority = null;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user