From 8f43c8b40527101cf41cb8ee6bb78e5b5b6831c7 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Sat, 1 May 2021 22:52:14 +0100 Subject: [PATCH] [AUTOGENERATED] Update auto generated code --- components/Bridge/Entity/ForeignLink.php | 17 +++++++++-------- components/Bridge/Entity/ForeignService.php | 9 +++++---- .../Bridge/Entity/ForeignSubscription.php | 5 +++-- components/Bridge/Entity/ForeignUser.php | 9 +++++---- plugins/Favourite/Entity/Favourite.php | 9 +++++---- plugins/Poll/Entity/Poll.php | 9 +++++---- plugins/Poll/Entity/PollResponse.php | 9 +++++---- src/Entity/Activity.php | 5 +++-- src/Entity/AttachmentToNote.php | 5 +++-- src/Entity/Avatar.php | 9 +++++---- src/Entity/ConfirmAddress.php | 13 +++++++------ src/Entity/Conversation.php | 9 +++++---- src/Entity/Cover.php | 9 +++++---- src/Entity/Follow.php | 9 +++++---- src/Entity/FollowQueue.php | 5 +++-- src/Entity/GSActor.php | 9 +++++---- src/Entity/GSActorBlock.php | 5 +++-- src/Entity/GSActorCircle.php | 9 +++++---- src/Entity/GSActorTag.php | 5 +++-- src/Entity/GSActorTagFollow.php | 9 +++++---- src/Entity/Group.php | 9 +++++---- src/Entity/GroupAlias.php | 5 +++-- src/Entity/GroupBlock.php | 5 +++-- src/Entity/GroupInbox.php | 5 +++-- src/Entity/GroupJoinQueue.php | 1 + src/Entity/GroupMember.php | 9 +++++---- src/Entity/Invitation.php | 5 +++-- src/Entity/LocalGroup.php | 9 +++++---- src/Entity/LocalUser.php | 9 +++++---- src/Entity/LocationService.php | 9 +++++---- src/Entity/Note.php | 9 +++++---- src/Entity/NoteLocation.php | 5 +++-- src/Entity/NoteSource.php | 5 +++-- src/Entity/NoteTag.php | 5 +++-- src/Entity/Notification.php | 9 +++++---- src/Entity/ProfileColor.php | 9 +++++---- src/Entity/RelatedGroup.php | 5 +++-- src/Entity/RememberMeToken.php | 5 +++-- src/Entity/ReservedNickname.php | 5 +++-- src/Entity/SmsCarrier.php | 9 +++++---- src/Entity/UserLocationPrefs.php | 9 +++++---- src/Entity/UserNotificationPrefs.php | 9 +++++---- src/Entity/UserUrlShortenerPrefs.php | 9 +++++---- 43 files changed, 185 insertions(+), 142 deletions(-) diff --git a/components/Bridge/Entity/ForeignLink.php b/components/Bridge/Entity/ForeignLink.php index fc93612c8b..c906a64ac7 100644 --- a/components/Bridge/Entity/ForeignLink.php +++ b/components/Bridge/Entity/ForeignLink.php @@ -127,50 +127,51 @@ class ForeignLink return $this->profilesync; } - public function setLastNoticesync(?DateTimeInterface $last_noticesync): self + public function setLastNoticesync(?\DateTimeInterface $last_noticesync): self { $this->last_noticesync = $last_noticesync; return $this; } - public function getLastNoticesync(): ?DateTimeInterface + public function getLastNoticesync(): ?\DateTimeInterface { return $this->last_noticesync; } - public function setLastFriendsync(?DateTimeInterface $last_friendsync): self + public function setLastFriendsync(?\DateTimeInterface $last_friendsync): self { $this->last_friendsync = $last_friendsync; return $this; } - public function getLastFriendsync(): ?DateTimeInterface + public function getLastFriendsync(): ?\DateTimeInterface { return $this->last_friendsync; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/components/Bridge/Entity/ForeignService.php b/components/Bridge/Entity/ForeignService.php index 1f3b090561..8f4f8de7b7 100644 --- a/components/Bridge/Entity/ForeignService.php +++ b/components/Bridge/Entity/ForeignService.php @@ -77,28 +77,29 @@ class ForeignService return $this->description; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/components/Bridge/Entity/ForeignSubscription.php b/components/Bridge/Entity/ForeignSubscription.php index 15f9e83b6c..67e8cf9fd8 100644 --- a/components/Bridge/Entity/ForeignSubscription.php +++ b/components/Bridge/Entity/ForeignSubscription.php @@ -76,17 +76,18 @@ class ForeignSubscription return $this->subscribed; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } + // }}} Autocode public static function schemaDef(): array diff --git a/components/Bridge/Entity/ForeignUser.php b/components/Bridge/Entity/ForeignUser.php index 52305a5627..04f9063c1c 100644 --- a/components/Bridge/Entity/ForeignUser.php +++ b/components/Bridge/Entity/ForeignUser.php @@ -89,28 +89,29 @@ class ForeignUser return $this->nickname; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/plugins/Favourite/Entity/Favourite.php b/plugins/Favourite/Entity/Favourite.php index 344e39ee23..51413dd032 100644 --- a/plugins/Favourite/Entity/Favourite.php +++ b/plugins/Favourite/Entity/Favourite.php @@ -52,28 +52,29 @@ class Favourite extends Entity return $this->gsactor_id; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef() diff --git a/plugins/Poll/Entity/Poll.php b/plugins/Poll/Entity/Poll.php index b3f8494dd6..f2d9ba95bf 100644 --- a/plugins/Poll/Entity/Poll.php +++ b/plugins/Poll/Entity/Poll.php @@ -113,28 +113,29 @@ class Poll extends Entity return $this->options; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode /** diff --git a/plugins/Poll/Entity/PollResponse.php b/plugins/Poll/Entity/PollResponse.php index 1b0bcfeccb..5e5401ce1e 100644 --- a/plugins/Poll/Entity/PollResponse.php +++ b/plugins/Poll/Entity/PollResponse.php @@ -101,28 +101,29 @@ class PollResponse extends Entity return $this->selection; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode /** diff --git a/src/Entity/Activity.php b/src/Entity/Activity.php index 7ebeee00b5..3e7174d2b7 100644 --- a/src/Entity/Activity.php +++ b/src/Entity/Activity.php @@ -124,17 +124,18 @@ class Activity extends Entity return $this->source; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/AttachmentToNote.php b/src/Entity/AttachmentToNote.php index 9d06ab898e..fd403811ec 100644 --- a/src/Entity/AttachmentToNote.php +++ b/src/Entity/AttachmentToNote.php @@ -65,17 +65,18 @@ class AttachmentToNote extends Entity return $this->note_id; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Avatar.php b/src/Entity/Avatar.php index df6f35eb86..0d2b705e89 100644 --- a/src/Entity/Avatar.php +++ b/src/Entity/Avatar.php @@ -71,28 +71,29 @@ class Avatar extends Entity return $this->attachment_id; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode private ?Attachment $attachment = null; diff --git a/src/Entity/ConfirmAddress.php b/src/Entity/ConfirmAddress.php index f472768a5a..713c875fe1 100644 --- a/src/Entity/ConfirmAddress.php +++ b/src/Entity/ConfirmAddress.php @@ -103,39 +103,40 @@ class ConfirmAddress extends Entity return $this->address_type; } - public function setClaimed(?DateTimeInterface $claimed): self + public function setClaimed(?\DateTimeInterface $claimed): self { $this->claimed = $claimed; return $this; } - public function getClaimed(): ?DateTimeInterface + public function getClaimed(): ?\DateTimeInterface { return $this->claimed; } - public function setSent(DateTimeInterface $sent): self + public function setSent(\DateTimeInterface $sent): self { $this->sent = $sent; return $this; } - public function getSent(): DateTimeInterface + public function getSent(): \DateTimeInterface { return $this->sent; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Conversation.php b/src/Entity/Conversation.php index 8485d62cc0..b114ca7a28 100644 --- a/src/Entity/Conversation.php +++ b/src/Entity/Conversation.php @@ -66,28 +66,29 @@ class Conversation extends Entity return $this->note_id; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Cover.php b/src/Entity/Cover.php index 029d6ddb3d..a111257549 100644 --- a/src/Entity/Cover.php +++ b/src/Entity/Cover.php @@ -66,28 +66,29 @@ class Cover extends Entity return $this->attachment_id; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode private ?Attachment $attachment = null; diff --git a/src/Entity/Follow.php b/src/Entity/Follow.php index d8c5575740..dee61a8237 100644 --- a/src/Entity/Follow.php +++ b/src/Entity/Follow.php @@ -66,28 +66,29 @@ class Follow extends Entity return $this->followed; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/FollowQueue.php b/src/Entity/FollowQueue.php index 8a744553c5..73e32cecff 100644 --- a/src/Entity/FollowQueue.php +++ b/src/Entity/FollowQueue.php @@ -65,17 +65,18 @@ class FollowQueue extends Entity return $this->followed; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GSActor.php b/src/Entity/GSActor.php index 4da2503283..b42e692291 100644 --- a/src/Entity/GSActor.php +++ b/src/Entity/GSActor.php @@ -181,28 +181,29 @@ class GSActor extends Entity return $this->location_service; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public function getAvatarUrl() diff --git a/src/Entity/GSActorBlock.php b/src/Entity/GSActorBlock.php index c94477f8c7..b17fce7575 100644 --- a/src/Entity/GSActorBlock.php +++ b/src/Entity/GSActorBlock.php @@ -65,17 +65,18 @@ class GSActorBlock extends Entity return $this->blocked; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GSActorCircle.php b/src/Entity/GSActorCircle.php index 5118442efc..39ee90ce53 100644 --- a/src/Entity/GSActorCircle.php +++ b/src/Entity/GSActorCircle.php @@ -90,28 +90,29 @@ class GSActorCircle extends Entity return $this->private; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GSActorTag.php b/src/Entity/GSActorTag.php index 46523a938f..18421438b1 100644 --- a/src/Entity/GSActorTag.php +++ b/src/Entity/GSActorTag.php @@ -77,17 +77,18 @@ class GSActorTag extends Entity return $this->tag; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GSActorTagFollow.php b/src/Entity/GSActorTagFollow.php index eb424ebe74..55801ccbd6 100644 --- a/src/Entity/GSActorTagFollow.php +++ b/src/Entity/GSActorTagFollow.php @@ -66,28 +66,29 @@ class GSActorTagFollow extends Entity return $this->gsactor_tag; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Group.php b/src/Entity/Group.php index a2aa521f18..fdb880cd39 100644 --- a/src/Entity/Group.php +++ b/src/Entity/Group.php @@ -234,28 +234,29 @@ class Group extends Entity return $this->force_scope; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupAlias.php b/src/Entity/GroupAlias.php index fdc4faac20..0092e2adea 100644 --- a/src/Entity/GroupAlias.php +++ b/src/Entity/GroupAlias.php @@ -65,17 +65,18 @@ class GroupAlias extends Entity return $this->group_id; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupBlock.php b/src/Entity/GroupBlock.php index 3c6274d5e3..b7c7c53b5e 100644 --- a/src/Entity/GroupBlock.php +++ b/src/Entity/GroupBlock.php @@ -77,17 +77,18 @@ class GroupBlock extends Entity return $this->blocker_user; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupInbox.php b/src/Entity/GroupInbox.php index 7e09e68627..ce39af51d8 100644 --- a/src/Entity/GroupInbox.php +++ b/src/Entity/GroupInbox.php @@ -65,17 +65,18 @@ class GroupInbox extends Entity return $this->activity_id; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupJoinQueue.php b/src/Entity/GroupJoinQueue.php index 962baeb72e..21a649b234 100644 --- a/src/Entity/GroupJoinQueue.php +++ b/src/Entity/GroupJoinQueue.php @@ -63,6 +63,7 @@ class GroupJoinQueue extends Entity return $this->group_id; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupMember.php b/src/Entity/GroupMember.php index 6a3ac4bc2c..657170c40c 100644 --- a/src/Entity/GroupMember.php +++ b/src/Entity/GroupMember.php @@ -90,28 +90,29 @@ class GroupMember extends Entity return $this->uri; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Invitation.php b/src/Entity/Invitation.php index 6a5ca8fa98..8a4f2e0574 100644 --- a/src/Entity/Invitation.php +++ b/src/Entity/Invitation.php @@ -101,17 +101,18 @@ class Invitation extends Entity return $this->registered_user_id; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/LocalGroup.php b/src/Entity/LocalGroup.php index 85815222bd..dc0dd7e29c 100644 --- a/src/Entity/LocalGroup.php +++ b/src/Entity/LocalGroup.php @@ -66,28 +66,29 @@ class LocalGroup extends Entity return $this->nickname; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/LocalUser.php b/src/Entity/LocalUser.php index c6db5d6406..c14bbff7d1 100644 --- a/src/Entity/LocalUser.php +++ b/src/Entity/LocalUser.php @@ -230,28 +230,29 @@ class LocalUser extends Entity implements UserInterface return $this->is_stream_private; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public function getActor() diff --git a/src/Entity/LocationService.php b/src/Entity/LocationService.php index b9b3b1850b..9797ea51be 100644 --- a/src/Entity/LocationService.php +++ b/src/Entity/LocationService.php @@ -66,28 +66,29 @@ class LocationService extends Entity return $this->description; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Note.php b/src/Entity/Note.php index 7f599f1a00..1f57e7917d 100644 --- a/src/Entity/Note.php +++ b/src/Entity/Note.php @@ -164,28 +164,29 @@ class Note extends Entity return $this->scope; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public function getActorNickname() diff --git a/src/Entity/NoteLocation.php b/src/Entity/NoteLocation.php index a982178085..744ae78366 100644 --- a/src/Entity/NoteLocation.php +++ b/src/Entity/NoteLocation.php @@ -101,17 +101,18 @@ class NoteLocation extends Entity return $this->location_service; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/NoteSource.php b/src/Entity/NoteSource.php index 796dfde455..75084606fa 100644 --- a/src/Entity/NoteSource.php +++ b/src/Entity/NoteSource.php @@ -77,17 +77,18 @@ class NoteSource extends Entity return $this->url; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/NoteTag.php b/src/Entity/NoteTag.php index deeb4fbf0a..4f5e181de7 100644 --- a/src/Entity/NoteTag.php +++ b/src/Entity/NoteTag.php @@ -65,17 +65,18 @@ class NoteTag extends Entity return $this->note_id; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Notification.php b/src/Entity/Notification.php index 54b12704a7..6ac129cbec 100644 --- a/src/Entity/Notification.php +++ b/src/Entity/Notification.php @@ -78,28 +78,29 @@ class Notification extends Entity return $this->reason; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/ProfileColor.php b/src/Entity/ProfileColor.php index b46737f743..61579f194e 100644 --- a/src/Entity/ProfileColor.php +++ b/src/Entity/ProfileColor.php @@ -64,28 +64,29 @@ class ProfileColor extends Entity return $this->color; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array { diff --git a/src/Entity/RelatedGroup.php b/src/Entity/RelatedGroup.php index 4c5402b41c..c721c67611 100644 --- a/src/Entity/RelatedGroup.php +++ b/src/Entity/RelatedGroup.php @@ -65,17 +65,18 @@ class RelatedGroup extends Entity return $this->related_group_id; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/RememberMeToken.php b/src/Entity/RememberMeToken.php index a5effa900b..efbd1ff8f4 100644 --- a/src/Entity/RememberMeToken.php +++ b/src/Entity/RememberMeToken.php @@ -65,13 +65,13 @@ class RememberMeToken extends Entity return $this->value; } - public function setLastused(DateTimeInterface $lastused): self + public function setLastused(\DateTimeInterface $lastused): self { $this->lastused = $lastused; return $this; } - public function getLastused(): DateTimeInterface + public function getLastused(): \DateTimeInterface { return $this->lastused; } @@ -98,6 +98,7 @@ class RememberMeToken extends Entity return $this->username; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/ReservedNickname.php b/src/Entity/ReservedNickname.php index 0983161635..9064e17eca 100644 --- a/src/Entity/ReservedNickname.php +++ b/src/Entity/ReservedNickname.php @@ -53,17 +53,18 @@ class ReservedNickname extends Entity return $this->nickname; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/SmsCarrier.php b/src/Entity/SmsCarrier.php index dfdf171393..1d2ab669e7 100644 --- a/src/Entity/SmsCarrier.php +++ b/src/Entity/SmsCarrier.php @@ -78,28 +78,29 @@ class SmsCarrier extends Entity return $this->email_pattern; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/UserLocationPrefs.php b/src/Entity/UserLocationPrefs.php index 2b5e234c58..9530a4d9cd 100644 --- a/src/Entity/UserLocationPrefs.php +++ b/src/Entity/UserLocationPrefs.php @@ -64,28 +64,29 @@ class UserLocationPrefs extends Entity return $this->share_location; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/UserNotificationPrefs.php b/src/Entity/UserNotificationPrefs.php index aee100e29b..5b90ee5890 100644 --- a/src/Entity/UserNotificationPrefs.php +++ b/src/Entity/UserNotificationPrefs.php @@ -182,28 +182,29 @@ class UserNotificationPrefs extends Entity return $this->enable_posting; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/UserUrlShortenerPrefs.php b/src/Entity/UserUrlShortenerPrefs.php index 61e4331578..05e40f7d1b 100644 --- a/src/Entity/UserUrlShortenerPrefs.php +++ b/src/Entity/UserUrlShortenerPrefs.php @@ -90,28 +90,29 @@ class UserUrlShortenerPrefs extends Entity return $this->max_notice_length; } - public function setCreated(DateTimeInterface $created): self + public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } - public function getCreated(): DateTimeInterface + public function getCreated(): \DateTimeInterface { return $this->created; } - public function setModified(DateTimeInterface $modified): self + public function setModified(\DateTimeInterface $modified): self { $this->modified = $modified; return $this; } - public function getModified(): DateTimeInterface + public function getModified(): \DateTimeInterface { return $this->modified; } + // }}} Autocode public static function schemaDef(): array