From d31c3b178410cde3f0758da0b2ea35555f61f283 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Wed, 5 May 2021 16:03:03 +0000 Subject: [PATCH] [AUTOGENERATED] Update autogenerated code --- components/Bridge/Entity/ForeignLink.php | 19 ++++++++++--------- components/Bridge/Entity/ForeignService.php | 11 ++++++----- .../Bridge/Entity/ForeignSubscription.php | 7 ++++--- components/Bridge/Entity/ForeignUser.php | 11 ++++++----- plugins/Embed/Entity/AttachmentEmbed.php | 2 ++ plugins/Favourite/Entity/Favourite.php | 11 ++++++----- plugins/Poll/Entity/Poll.php | 11 ++++++----- plugins/Poll/Entity/PollResponse.php | 11 ++++++----- src/Core/DB/DB.php | 3 ++- src/Entity/Activity.php | 7 ++++--- src/Entity/Attachment.php | 2 ++ src/Entity/AttachmentThumbnail.php | 2 ++ src/Entity/AttachmentToNote.php | 7 ++++--- src/Entity/Avatar.php | 11 ++++++----- src/Entity/ConfirmAddress.php | 15 ++++++++------- src/Entity/Conversation.php | 11 ++++++----- src/Entity/Cover.php | 11 ++++++----- src/Entity/Follow.php | 11 ++++++----- src/Entity/FollowQueue.php | 7 ++++--- src/Entity/GSActor.php | 2 ++ src/Entity/GSActorBlock.php | 7 ++++--- src/Entity/GSActorCircle.php | 11 ++++++----- src/Entity/GSActorTag.php | 7 ++++--- src/Entity/GSActorTagFollow.php | 11 ++++++----- src/Entity/Group.php | 11 ++++++----- src/Entity/GroupAlias.php | 7 ++++--- src/Entity/GroupBlock.php | 7 ++++--- src/Entity/GroupInbox.php | 7 ++++--- src/Entity/GroupJoinQueue.php | 3 ++- src/Entity/GroupMember.php | 11 ++++++----- src/Entity/Invitation.php | 7 ++++--- src/Entity/LocalGroup.php | 2 ++ src/Entity/LocalUser.php | 11 ++++++----- src/Entity/LocationService.php | 11 ++++++----- src/Entity/Note.php | 11 ++++++----- src/Entity/NoteLocation.php | 7 ++++--- src/Entity/NoteSource.php | 7 ++++--- src/Entity/NoteTag.php | 7 ++++--- src/Entity/Notification.php | 11 ++++++----- src/Entity/ProfileColor.php | 11 ++++++----- src/Entity/RelatedGroup.php | 7 ++++--- src/Entity/RememberMeToken.php | 7 ++++--- src/Entity/ReservedNickname.php | 7 ++++--- src/Entity/SmsCarrier.php | 11 ++++++----- src/Entity/UserLocationPrefs.php | 11 ++++++----- src/Entity/UserNotificationPrefs.php | 11 ++++++----- src/Entity/UserUrlShortenerPrefs.php | 11 ++++++----- 47 files changed, 228 insertions(+), 176 deletions(-) diff --git a/components/Bridge/Entity/ForeignLink.php b/components/Bridge/Entity/ForeignLink.php index c906a64ac7..0222ee8ac4 100644 --- a/components/Bridge/Entity/ForeignLink.php +++ b/components/Bridge/Entity/ForeignLink.php @@ -38,6 +38,7 @@ use DateTimeInterface; class ForeignLink { // {{{ Autocode + // @codeCoverageIgnoreStart private int $user_id; private int $foreign_id; private int $service; @@ -127,51 +128,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/components/Bridge/Entity/ForeignService.php b/components/Bridge/Entity/ForeignService.php index 8f4f8de7b7..b25ae62e64 100644 --- a/components/Bridge/Entity/ForeignService.php +++ b/components/Bridge/Entity/ForeignService.php @@ -38,6 +38,7 @@ use DateTimeInterface; class ForeignService { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private string $name; private ?string $description; @@ -77,29 +78,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/components/Bridge/Entity/ForeignSubscription.php b/components/Bridge/Entity/ForeignSubscription.php index 67e8cf9fd8..c77e2a6010 100644 --- a/components/Bridge/Entity/ForeignSubscription.php +++ b/components/Bridge/Entity/ForeignSubscription.php @@ -38,6 +38,7 @@ use DateTimeInterface; class ForeignSubscription { // {{{ Autocode + // @codeCoverageIgnoreStart private int $service; private int $subscriber; private int $subscribed; @@ -76,18 +77,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/components/Bridge/Entity/ForeignUser.php b/components/Bridge/Entity/ForeignUser.php index 04f9063c1c..1c711cdcd8 100644 --- a/components/Bridge/Entity/ForeignUser.php +++ b/components/Bridge/Entity/ForeignUser.php @@ -38,6 +38,7 @@ use DateTimeInterface; class ForeignUser { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private int $service; private string $uri; @@ -89,29 +90,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/plugins/Embed/Entity/AttachmentEmbed.php b/plugins/Embed/Entity/AttachmentEmbed.php index 77053c226a..40c95174dc 100644 --- a/plugins/Embed/Entity/AttachmentEmbed.php +++ b/plugins/Embed/Entity/AttachmentEmbed.php @@ -48,6 +48,7 @@ use DateTimeInterface; class AttachmentEmbed extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $attachment_id; private ?string $mimetype; private ?string $filename; @@ -205,6 +206,7 @@ class AttachmentEmbed extends Entity return $this->modified; } + // @codeCoverageIgnoreEnd // }}} Autocode public function getAttachmentUrl() diff --git a/plugins/Favourite/Entity/Favourite.php b/plugins/Favourite/Entity/Favourite.php index 51413dd032..bfcce1ab48 100644 --- a/plugins/Favourite/Entity/Favourite.php +++ b/plugins/Favourite/Entity/Favourite.php @@ -25,6 +25,7 @@ use DateTimeInterface; class Favourite extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $note_id; private int $gsactor_id; private \DateTimeInterface $created; @@ -52,29 +53,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef() diff --git a/plugins/Poll/Entity/Poll.php b/plugins/Poll/Entity/Poll.php index f2d9ba95bf..98291d77ca 100644 --- a/plugins/Poll/Entity/Poll.php +++ b/plugins/Poll/Entity/Poll.php @@ -38,6 +38,7 @@ use DateTimeInterface; class Poll extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private ?string $uri; private ?int $gsactor_id; @@ -113,29 +114,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode /** diff --git a/plugins/Poll/Entity/PollResponse.php b/plugins/Poll/Entity/PollResponse.php index 5e5401ce1e..e07f3260f8 100644 --- a/plugins/Poll/Entity/PollResponse.php +++ b/plugins/Poll/Entity/PollResponse.php @@ -38,6 +38,7 @@ use DateTimeInterface; class PollResponse extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private ?string $uri; private int $poll_id; @@ -101,29 +102,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode /** diff --git a/src/Core/DB/DB.php b/src/Core/DB/DB.php index 3cd523a5d8..363dcc152d 100644 --- a/src/Core/DB/DB.php +++ b/src/Core/DB/DB.php @@ -56,7 +56,8 @@ abstract class DB private static array $table_map = []; public static function initTableMap() { - foreach (self::$em->getMetadataFactory()->getAllMetadata() as $meta) { + $all = self::$em->getMetadataFactory()->getAllMetadata(); + foreach ($all as $meta) { self::$table_map[$meta->getTableName()] = $meta->getMetadataValue('name'); } } diff --git a/src/Entity/Activity.php b/src/Entity/Activity.php index 3e7174d2b7..e0f7385403 100644 --- a/src/Entity/Activity.php +++ b/src/Entity/Activity.php @@ -38,6 +38,7 @@ use DateTimeInterface; class Activity extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private int $gsactor_id; private string $verb; @@ -124,18 +125,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Attachment.php b/src/Entity/Attachment.php index a6310cd740..43d92af1d5 100644 --- a/src/Entity/Attachment.php +++ b/src/Entity/Attachment.php @@ -43,6 +43,7 @@ use DateTimeInterface; class Attachment extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private ?string $remote_url; private ?string $remote_url_hash; @@ -224,6 +225,7 @@ class Attachment extends Entity return $this->modified; } + // @codeCoverageIgnoreEnd // }}} Autocode const URLHASH_ALGO = 'sha256'; diff --git a/src/Entity/AttachmentThumbnail.php b/src/Entity/AttachmentThumbnail.php index accd362d7c..ced1663117 100644 --- a/src/Entity/AttachmentThumbnail.php +++ b/src/Entity/AttachmentThumbnail.php @@ -50,6 +50,7 @@ use DateTimeInterface; class AttachmentThumbnail extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $attachment_id; private int $width; private int $height; @@ -111,6 +112,7 @@ class AttachmentThumbnail extends Entity return $this->modified; } + // @codeCoverageIgnoreEnd // }}} Autocode private Attachment $attachment; diff --git a/src/Entity/AttachmentToNote.php b/src/Entity/AttachmentToNote.php index fd403811ec..0f57dfe0ec 100644 --- a/src/Entity/AttachmentToNote.php +++ b/src/Entity/AttachmentToNote.php @@ -39,6 +39,7 @@ use DateTimeInterface; class AttachmentToNote extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $attachment_id; private int $note_id; private \DateTimeInterface $modified; @@ -65,18 +66,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Avatar.php b/src/Entity/Avatar.php index 0d2b705e89..ad5fb5f02d 100644 --- a/src/Entity/Avatar.php +++ b/src/Entity/Avatar.php @@ -44,6 +44,7 @@ use DateTimeInterface; class Avatar extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $gsactor_id; private int $attachment_id; private \DateTimeInterface $created; @@ -71,29 +72,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode private ?Attachment $attachment = null; diff --git a/src/Entity/ConfirmAddress.php b/src/Entity/ConfirmAddress.php index 713c875fe1..854554eb1e 100644 --- a/src/Entity/ConfirmAddress.php +++ b/src/Entity/ConfirmAddress.php @@ -39,6 +39,7 @@ use DateTimeInterface; class ConfirmAddress extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private string $code; private ?int $user_id; private string $address; @@ -103,40 +104,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Conversation.php b/src/Entity/Conversation.php index b114ca7a28..664782a28a 100644 --- a/src/Entity/Conversation.php +++ b/src/Entity/Conversation.php @@ -39,6 +39,7 @@ use DateTimeInterface; class Conversation extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private int $note_id; private \DateTimeInterface $created; @@ -66,29 +67,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Cover.php b/src/Entity/Cover.php index a111257549..29f4b28912 100644 --- a/src/Entity/Cover.php +++ b/src/Entity/Cover.php @@ -39,6 +39,7 @@ use DateTimeInterface; class Cover extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $gsactor_id; private int $attachment_id; private \DateTimeInterface $created; @@ -66,29 +67,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode private ?Attachment $attachment = null; diff --git a/src/Entity/Follow.php b/src/Entity/Follow.php index dee61a8237..dd4d50a230 100644 --- a/src/Entity/Follow.php +++ b/src/Entity/Follow.php @@ -39,6 +39,7 @@ use DateTimeInterface; class Follow extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $follower; private int $followed; private \DateTimeInterface $created; @@ -66,29 +67,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/FollowQueue.php b/src/Entity/FollowQueue.php index 73e32cecff..248ab777fc 100644 --- a/src/Entity/FollowQueue.php +++ b/src/Entity/FollowQueue.php @@ -39,6 +39,7 @@ use DateTimeInterface; class FollowQueue extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $follower; private int $followed; private \DateTimeInterface $created; @@ -65,18 +66,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GSActor.php b/src/Entity/GSActor.php index 0b0b991d1f..b083b8ec59 100644 --- a/src/Entity/GSActor.php +++ b/src/Entity/GSActor.php @@ -46,6 +46,7 @@ use Functional as F; class GSActor extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private string $nickname; private string $normalized_nickname; @@ -215,6 +216,7 @@ class GSActor extends Entity return $this->modified; } + // @codeCoverageIgnoreEnd // }}} Autocode public function getAvatarUrl() diff --git a/src/Entity/GSActorBlock.php b/src/Entity/GSActorBlock.php index b17fce7575..35138b5482 100644 --- a/src/Entity/GSActorBlock.php +++ b/src/Entity/GSActorBlock.php @@ -39,6 +39,7 @@ use DateTimeInterface; class GSActorBlock extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $blocker; private int $blocked; private \DateTimeInterface $modified; @@ -65,18 +66,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GSActorCircle.php b/src/Entity/GSActorCircle.php index 39ee90ce53..0b4578d4ef 100644 --- a/src/Entity/GSActorCircle.php +++ b/src/Entity/GSActorCircle.php @@ -39,6 +39,7 @@ use DateTimeInterface; class GSActorCircle extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $tagger; private string $tag; private ?string $description; @@ -90,29 +91,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GSActorTag.php b/src/Entity/GSActorTag.php index 18421438b1..12ed8fc383 100644 --- a/src/Entity/GSActorTag.php +++ b/src/Entity/GSActorTag.php @@ -39,6 +39,7 @@ use DateTimeInterface; class GSActorTag extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $tagger; private int $tagged; private string $tag; @@ -77,18 +78,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GSActorTagFollow.php b/src/Entity/GSActorTagFollow.php index 55801ccbd6..e0311d4a34 100644 --- a/src/Entity/GSActorTagFollow.php +++ b/src/Entity/GSActorTagFollow.php @@ -39,6 +39,7 @@ use DateTimeInterface; class GSActorTagFollow extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $gsactor_id; private int $gsactor_tag; private \DateTimeInterface $created; @@ -66,29 +67,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Group.php b/src/Entity/Group.php index fdb880cd39..118a6cbee0 100644 --- a/src/Entity/Group.php +++ b/src/Entity/Group.php @@ -39,6 +39,7 @@ use DateTimeInterface; class Group extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private int $gsactor_id; private ?string $nickname; @@ -234,29 +235,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupAlias.php b/src/Entity/GroupAlias.php index 0092e2adea..349de80538 100644 --- a/src/Entity/GroupAlias.php +++ b/src/Entity/GroupAlias.php @@ -39,6 +39,7 @@ use DateTimeInterface; class GroupAlias extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private string $alias; private int $group_id; private \DateTimeInterface $modified; @@ -65,18 +66,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupBlock.php b/src/Entity/GroupBlock.php index b7c7c53b5e..bf0dfc16ea 100644 --- a/src/Entity/GroupBlock.php +++ b/src/Entity/GroupBlock.php @@ -39,6 +39,7 @@ use DateTimeInterface; class GroupBlock extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $group_id; private int $blocked_gsactor; private int $blocker_user; @@ -77,18 +78,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupInbox.php b/src/Entity/GroupInbox.php index ce39af51d8..ef87eeb2d7 100644 --- a/src/Entity/GroupInbox.php +++ b/src/Entity/GroupInbox.php @@ -39,6 +39,7 @@ use DateTimeInterface; class GroupInbox extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $group_id; private int $activity_id; private \DateTimeInterface $created; @@ -65,18 +66,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupJoinQueue.php b/src/Entity/GroupJoinQueue.php index 21a649b234..5f3ba77016 100644 --- a/src/Entity/GroupJoinQueue.php +++ b/src/Entity/GroupJoinQueue.php @@ -38,6 +38,7 @@ use App\Core\Entity; class GroupJoinQueue extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $gsactor_id; private int $group_id; @@ -63,7 +64,7 @@ class GroupJoinQueue extends Entity return $this->group_id; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/GroupMember.php b/src/Entity/GroupMember.php index 657170c40c..1f83deba6d 100644 --- a/src/Entity/GroupMember.php +++ b/src/Entity/GroupMember.php @@ -39,6 +39,7 @@ use DateTimeInterface; class GroupMember extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $group_id; private int $gsactor_id; private ?bool $is_admin; @@ -90,29 +91,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Invitation.php b/src/Entity/Invitation.php index 8a4f2e0574..13f8d5fa60 100644 --- a/src/Entity/Invitation.php +++ b/src/Entity/Invitation.php @@ -39,6 +39,7 @@ use DateTimeInterface; class Invitation extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private string $code; private int $user_id; private string $address; @@ -101,18 +102,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/LocalGroup.php b/src/Entity/LocalGroup.php index ef360b6453..9713ac867f 100644 --- a/src/Entity/LocalGroup.php +++ b/src/Entity/LocalGroup.php @@ -41,6 +41,7 @@ use DateTimeInterface; class LocalGroup extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $group_id; private ?string $nickname; private \DateTimeInterface $created; @@ -90,6 +91,7 @@ class LocalGroup extends Entity return $this->modified; } + // @codeCoverageIgnoreEnd // }}} Autocode public function getActor() diff --git a/src/Entity/LocalUser.php b/src/Entity/LocalUser.php index c14bbff7d1..84a1d7e320 100644 --- a/src/Entity/LocalUser.php +++ b/src/Entity/LocalUser.php @@ -47,6 +47,7 @@ use Symfony\Component\Security\Core\User\UserInterface; class LocalUser extends Entity implements UserInterface { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private string $nickname; private ?string $password; @@ -230,29 +231,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public function getActor() diff --git a/src/Entity/LocationService.php b/src/Entity/LocationService.php index 9797ea51be..680daa534e 100644 --- a/src/Entity/LocationService.php +++ b/src/Entity/LocationService.php @@ -39,6 +39,7 @@ use DateTimeInterface; class LocationService extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private ?string $description; private \DateTimeInterface $created; @@ -66,29 +67,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Note.php b/src/Entity/Note.php index 1f57e7917d..7a448358ce 100644 --- a/src/Entity/Note.php +++ b/src/Entity/Note.php @@ -41,6 +41,7 @@ use DateTimeInterface; class Note extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private int $gsactor_id; private ?string $content; @@ -164,29 +165,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public function getActorNickname() diff --git a/src/Entity/NoteLocation.php b/src/Entity/NoteLocation.php index 744ae78366..c3575a8610 100644 --- a/src/Entity/NoteLocation.php +++ b/src/Entity/NoteLocation.php @@ -39,6 +39,7 @@ use DateTimeInterface; class NoteLocation extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $note_id; private ?float $lat; private ?float $lon; @@ -101,18 +102,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/NoteSource.php b/src/Entity/NoteSource.php index 75084606fa..d35dd44e6f 100644 --- a/src/Entity/NoteSource.php +++ b/src/Entity/NoteSource.php @@ -39,6 +39,7 @@ use DateTimeInterface; class NoteSource extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private string $code; private string $name; private string $url; @@ -77,18 +78,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/NoteTag.php b/src/Entity/NoteTag.php index 4f5e181de7..c6fcdfed64 100644 --- a/src/Entity/NoteTag.php +++ b/src/Entity/NoteTag.php @@ -39,6 +39,7 @@ use DateTimeInterface; class NoteTag extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private string $tag; private int $note_id; private \DateTimeInterface $created; @@ -65,18 +66,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/Notification.php b/src/Entity/Notification.php index 6ac129cbec..761be9d050 100644 --- a/src/Entity/Notification.php +++ b/src/Entity/Notification.php @@ -39,6 +39,7 @@ use DateTimeInterface; class Notification extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $activity_id; private int $gsactor_id; private ?string $reason; @@ -78,29 +79,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/ProfileColor.php b/src/Entity/ProfileColor.php index 61579f194e..2b6c47274e 100644 --- a/src/Entity/ProfileColor.php +++ b/src/Entity/ProfileColor.php @@ -37,6 +37,7 @@ use DateTimeInterface; class ProfileColor extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $gsactor_id; private string $color; private \DateTimeInterface $created; @@ -64,29 +65,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array { diff --git a/src/Entity/RelatedGroup.php b/src/Entity/RelatedGroup.php index c721c67611..2698704801 100644 --- a/src/Entity/RelatedGroup.php +++ b/src/Entity/RelatedGroup.php @@ -39,6 +39,7 @@ use DateTimeInterface; class RelatedGroup extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $group_id; private int $related_group_id; private \DateTimeInterface $created; @@ -65,18 +66,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/RememberMeToken.php b/src/Entity/RememberMeToken.php index efbd1ff8f4..8a64e17c32 100644 --- a/src/Entity/RememberMeToken.php +++ b/src/Entity/RememberMeToken.php @@ -37,6 +37,7 @@ use DateTimeInterface; class RememberMeToken extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private string $series; private string $value; private \DateTimeInterface $lastused; @@ -65,13 +66,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,7 +99,7 @@ class RememberMeToken extends Entity return $this->username; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/ReservedNickname.php b/src/Entity/ReservedNickname.php index 9064e17eca..ef619d74b2 100644 --- a/src/Entity/ReservedNickname.php +++ b/src/Entity/ReservedNickname.php @@ -39,6 +39,7 @@ use DateTimeInterface; class ReservedNickname extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private string $nickname; private \DateTimeInterface $created; @@ -53,18 +54,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/SmsCarrier.php b/src/Entity/SmsCarrier.php index 1d2ab669e7..39f3903f21 100644 --- a/src/Entity/SmsCarrier.php +++ b/src/Entity/SmsCarrier.php @@ -39,6 +39,7 @@ use DateTimeInterface; class SmsCarrier extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $id; private ?string $name; private string $email_pattern; @@ -78,29 +79,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/UserLocationPrefs.php b/src/Entity/UserLocationPrefs.php index 9530a4d9cd..3a28b2b972 100644 --- a/src/Entity/UserLocationPrefs.php +++ b/src/Entity/UserLocationPrefs.php @@ -37,6 +37,7 @@ use DateTimeInterface; class UserLocationPrefs extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $user_id; private ?bool $share_location; private \DateTimeInterface $created; @@ -64,29 +65,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/UserNotificationPrefs.php b/src/Entity/UserNotificationPrefs.php index 5b90ee5890..739ef9f51c 100644 --- a/src/Entity/UserNotificationPrefs.php +++ b/src/Entity/UserNotificationPrefs.php @@ -35,6 +35,7 @@ use DateTimeInterface; class UserNotificationPrefs extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $user_id; private string $transport; private ?int $target_gsactor_id; @@ -182,29 +183,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array diff --git a/src/Entity/UserUrlShortenerPrefs.php b/src/Entity/UserUrlShortenerPrefs.php index 05e40f7d1b..3a6516d5f7 100644 --- a/src/Entity/UserUrlShortenerPrefs.php +++ b/src/Entity/UserUrlShortenerPrefs.php @@ -39,6 +39,7 @@ use DateTimeInterface; class UserUrlShortenerPrefs extends Entity { // {{{ Autocode + // @codeCoverageIgnoreStart private int $user_id; private ?string $url_shortening_service; private int $max_url_length; @@ -90,29 +91,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; } - + // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array