diff --git a/src/Entity/Activity.php b/src/Entity/Activity.php index 0153b28af1..0c8e9e94c2 100644 --- a/src/Entity/Activity.php +++ b/src/Entity/Activity.php @@ -62,6 +62,7 @@ class Activity $this->id = $id; return $this; } + public function getId(): int { return $this->id; @@ -72,6 +73,7 @@ class Activity $this->profile_id = $profile_id; return $this; } + public function getProfileId(): int { return $this->profile_id; @@ -82,6 +84,7 @@ class Activity $this->uri = $uri; return $this; } + public function getUri(): ?string { return $this->uri; @@ -92,6 +95,7 @@ class Activity $this->content = $content; return $this; } + public function getContent(): ?string { return $this->content; @@ -102,6 +106,7 @@ class Activity $this->rendered = $rendered; return $this; } + public function getRendered(): ?string { return $this->rendered; @@ -112,6 +117,7 @@ class Activity $this->reply_to = $reply_to; return $this; } + public function getReplyTo(): ?int { return $this->reply_to; @@ -122,6 +128,7 @@ class Activity $this->is_local = $is_local; return $this; } + public function getIsLocal(): ?bool { return $this->is_local; @@ -132,6 +139,7 @@ class Activity $this->source = $source; return $this; } + public function getSource(): ?string { return $this->source; @@ -142,6 +150,7 @@ class Activity $this->conversation = $conversation; return $this; } + public function getConversation(): ?int { return $this->conversation; @@ -152,6 +161,7 @@ class Activity $this->repeat_of = $repeat_of; return $this; } + public function getRepeatOf(): ?int { return $this->repeat_of; @@ -162,6 +172,7 @@ class Activity $this->object_type = $object_type; return $this; } + public function getObjectType(): ?string { return $this->object_type; @@ -172,6 +183,7 @@ class Activity $this->verb = $verb; return $this; } + public function getVerb(): ?string { return $this->verb; @@ -182,6 +194,7 @@ class Activity $this->scope = $scope; return $this; } + public function getScope(): ?int { return $this->scope; @@ -192,6 +205,7 @@ class Activity $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -202,6 +216,7 @@ class Activity $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/ActivityLocation.php b/src/Entity/ActivityLocation.php index 84c2cc47f8..1e1a225778 100644 --- a/src/Entity/ActivityLocation.php +++ b/src/Entity/ActivityLocation.php @@ -51,6 +51,7 @@ class ActivityLocation $this->activity_id = $activity_id; return $this; } + public function getActivityId(): int { return $this->activity_id; @@ -61,6 +62,7 @@ class ActivityLocation $this->lat = $lat; return $this; } + public function getLat(): ?float { return $this->lat; @@ -71,6 +73,7 @@ class ActivityLocation $this->lon = $lon; return $this; } + public function getLon(): ?float { return $this->lon; @@ -81,6 +84,7 @@ class ActivityLocation $this->location_id = $location_id; return $this; } + public function getLocationId(): ?int { return $this->location_id; @@ -91,6 +95,7 @@ class ActivityLocation $this->location_service = $location_service; return $this; } + public function getLocationService(): ?int { return $this->location_service; @@ -101,6 +106,7 @@ class ActivityLocation $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/ActivitySource.php b/src/Entity/ActivitySource.php index 29ede79db4..16bf72db53 100644 --- a/src/Entity/ActivitySource.php +++ b/src/Entity/ActivitySource.php @@ -50,6 +50,7 @@ class ActivitySource $this->code = $code; return $this; } + public function getCode(): string { return $this->code; @@ -60,6 +61,7 @@ class ActivitySource $this->name = $name; return $this; } + public function getName(): string { return $this->name; @@ -70,6 +72,7 @@ class ActivitySource $this->url = $url; return $this; } + public function getUrl(): string { return $this->url; @@ -80,6 +83,7 @@ class ActivitySource $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -90,6 +94,7 @@ class ActivitySource $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/ActivityTag.php b/src/Entity/ActivityTag.php index 58cce60299..4508737990 100644 --- a/src/Entity/ActivityTag.php +++ b/src/Entity/ActivityTag.php @@ -48,6 +48,7 @@ class ActivityTag $this->tag = $tag; return $this; } + public function getTag(): string { return $this->tag; @@ -58,6 +59,7 @@ class ActivityTag $this->activity_id = $activity_id; return $this; } + public function getActivityId(): int { return $this->activity_id; @@ -68,6 +70,7 @@ class ActivityTag $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; diff --git a/src/Entity/Config.php b/src/Entity/Config.php index bcc8af6ffa..94779441a5 100644 --- a/src/Entity/Config.php +++ b/src/Entity/Config.php @@ -46,6 +46,7 @@ class Config $this->section = $section; return $this; } + public function getSection(): string { return $this->section; @@ -56,6 +57,7 @@ class Config $this->setting = $setting; return $this; } + public function getSetting(): string { return $this->setting; @@ -66,6 +68,7 @@ class Config $this->value = $value; return $this; } + public function getValue(): ?string { return $this->value; diff --git a/src/Entity/ConfirmAddress.php b/src/Entity/ConfirmAddress.php index 3de01bcabb..2b3c6bf796 100644 --- a/src/Entity/ConfirmAddress.php +++ b/src/Entity/ConfirmAddress.php @@ -53,6 +53,7 @@ class ConfirmAddress $this->code = $code; return $this; } + public function getCode(): string { return $this->code; @@ -63,6 +64,7 @@ class ConfirmAddress $this->user_id = $user_id; return $this; } + public function getUserId(): ?int { return $this->user_id; @@ -73,6 +75,7 @@ class ConfirmAddress $this->address = $address; return $this; } + public function getAddress(): string { return $this->address; @@ -83,6 +86,7 @@ class ConfirmAddress $this->address_extra = $address_extra; return $this; } + public function getAddressExtra(): ?string { return $this->address_extra; @@ -93,6 +97,7 @@ class ConfirmAddress $this->address_type = $address_type; return $this; } + public function getAddressType(): string { return $this->address_type; @@ -103,6 +108,7 @@ class ConfirmAddress $this->claimed = $claimed; return $this; } + public function getClaimed(): ?DateTimeInterface { return $this->claimed; @@ -113,6 +119,7 @@ class ConfirmAddress $this->sent = $sent; return $this; } + public function getSent(): DateTimeInterface { return $this->sent; @@ -123,6 +130,7 @@ class ConfirmAddress $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/Conversation.php b/src/Entity/Conversation.php index 52ea4b25d4..d36fa5d07b 100644 --- a/src/Entity/Conversation.php +++ b/src/Entity/Conversation.php @@ -48,6 +48,7 @@ class Conversation $this->id = $id; return $this; } + public function getId(): int { return $this->id; @@ -58,6 +59,7 @@ class Conversation $this->uri = $uri; return $this; } + public function getUri(): string { return $this->uri; @@ -68,6 +70,7 @@ class Conversation $this->url = $url; return $this; } + public function getUrl(): ?string { return $this->url; @@ -78,6 +81,7 @@ class Conversation $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -88,6 +92,7 @@ class Conversation $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/FileThumbnail.php b/src/Entity/FileThumbnail.php index 58fe8e4947..5c4e2c40d7 100644 --- a/src/Entity/FileThumbnail.php +++ b/src/Entity/FileThumbnail.php @@ -49,6 +49,7 @@ class FileThumbnail $this->file_id = $file_id; return $this; } + public function getFileId(): int { return $this->file_id; @@ -59,6 +60,7 @@ class FileThumbnail $this->width = $width; return $this; } + public function getWidth(): int { return $this->width; @@ -69,6 +71,7 @@ class FileThumbnail $this->height = $height; return $this; } + public function getHeight(): int { return $this->height; @@ -79,6 +82,7 @@ class FileThumbnail $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/FileToActivity.php b/src/Entity/FileToActivity.php index 733a5d4298..59fdcd8e27 100644 --- a/src/Entity/FileToActivity.php +++ b/src/Entity/FileToActivity.php @@ -48,6 +48,7 @@ class FileToActivity $this->file_id = $file_id; return $this; } + public function getFileId(): int { return $this->file_id; @@ -58,6 +59,7 @@ class FileToActivity $this->activity_id = $activity_id; return $this; } + public function getActivityId(): int { return $this->activity_id; @@ -68,6 +70,7 @@ class FileToActivity $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/Follow.php b/src/Entity/Follow.php index cfcebf04f2..7780f94303 100644 --- a/src/Entity/Follow.php +++ b/src/Entity/Follow.php @@ -51,6 +51,7 @@ class Follow $this->follower = $follower; return $this; } + public function getFollower(): int { return $this->follower; @@ -61,6 +62,7 @@ class Follow $this->followed = $followed; return $this; } + public function getFollowed(): int { return $this->followed; @@ -71,6 +73,7 @@ class Follow $this->uri = $uri; return $this; } + public function getUri(): ?string { return $this->uri; @@ -81,6 +84,7 @@ class Follow $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -91,6 +95,7 @@ class Follow $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/FollowQueue.php b/src/Entity/FollowQueue.php index 8147dfb9bd..e9628e8e77 100644 --- a/src/Entity/FollowQueue.php +++ b/src/Entity/FollowQueue.php @@ -48,6 +48,7 @@ class FollowQueue $this->follower = $follower; return $this; } + public function getFollower(): int { return $this->follower; @@ -58,6 +59,7 @@ class FollowQueue $this->followed = $followed; return $this; } + public function getFollowed(): int { return $this->followed; @@ -68,6 +70,7 @@ class FollowQueue $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; diff --git a/src/Entity/Group.php b/src/Entity/Group.php index 84791e83ea..70fa9bbf58 100644 --- a/src/Entity/Group.php +++ b/src/Entity/Group.php @@ -63,6 +63,7 @@ class Group $this->id = $id; return $this; } + public function getId(): int { return $this->id; @@ -73,6 +74,7 @@ class Group $this->profile_id = $profile_id; return $this; } + public function getProfileId(): int { return $this->profile_id; @@ -83,6 +85,7 @@ class Group $this->nickname = $nickname; return $this; } + public function getNickname(): ?string { return $this->nickname; @@ -93,6 +96,7 @@ class Group $this->fullname = $fullname; return $this; } + public function getFullname(): ?string { return $this->fullname; @@ -103,6 +107,7 @@ class Group $this->homepage = $homepage; return $this; } + public function getHomepage(): ?string { return $this->homepage; @@ -113,6 +118,7 @@ class Group $this->description = $description; return $this; } + public function getDescription(): ?string { return $this->description; @@ -123,6 +129,7 @@ class Group $this->is_local = $is_local; return $this; } + public function getIsLocal(): ?bool { return $this->is_local; @@ -133,6 +140,7 @@ class Group $this->location = $location; return $this; } + public function getLocation(): ?string { return $this->location; @@ -143,6 +151,7 @@ class Group $this->original_logo = $original_logo; return $this; } + public function getOriginalLogo(): ?string { return $this->original_logo; @@ -153,6 +162,7 @@ class Group $this->homepage_logo = $homepage_logo; return $this; } + public function getHomepageLogo(): ?string { return $this->homepage_logo; @@ -163,6 +173,7 @@ class Group $this->stream_logo = $stream_logo; return $this; } + public function getStreamLogo(): ?string { return $this->stream_logo; @@ -173,6 +184,7 @@ class Group $this->mini_logo = $mini_logo; return $this; } + public function getMiniLogo(): ?string { return $this->mini_logo; @@ -183,6 +195,7 @@ class Group $this->uri = $uri; return $this; } + public function getUri(): ?string { return $this->uri; @@ -193,6 +206,7 @@ class Group $this->mainpage = $mainpage; return $this; } + public function getMainpage(): ?string { return $this->mainpage; @@ -203,6 +217,7 @@ class Group $this->join_policy = $join_policy; return $this; } + public function getJoinPolicy(): ?int { return $this->join_policy; @@ -213,6 +228,7 @@ class Group $this->force_scope = $force_scope; return $this; } + public function getForceScope(): ?int { return $this->force_scope; @@ -223,6 +239,7 @@ class Group $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -233,6 +250,7 @@ class Group $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/GroupAlias.php b/src/Entity/GroupAlias.php index ceb03451d6..9455c3e2ff 100644 --- a/src/Entity/GroupAlias.php +++ b/src/Entity/GroupAlias.php @@ -48,6 +48,7 @@ class GroupAlias $this->alias = $alias; return $this; } + public function getAlias(): string { return $this->alias; @@ -58,6 +59,7 @@ class GroupAlias $this->group_id = $group_id; return $this; } + public function getGroupId(): int { return $this->group_id; @@ -68,6 +70,7 @@ class GroupAlias $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/GroupBlock.php b/src/Entity/GroupBlock.php index 8c69047f58..340cdb5ded 100644 --- a/src/Entity/GroupBlock.php +++ b/src/Entity/GroupBlock.php @@ -49,6 +49,7 @@ class GroupBlock $this->group_id = $group_id; return $this; } + public function getGroupId(): int { return $this->group_id; @@ -59,6 +60,7 @@ class GroupBlock $this->blocked_profile = $blocked_profile; return $this; } + public function getBlockedProfile(): int { return $this->blocked_profile; @@ -69,6 +71,7 @@ class GroupBlock $this->blocker_user = $blocker_user; return $this; } + public function getBlockerUser(): int { return $this->blocker_user; @@ -79,6 +82,7 @@ class GroupBlock $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/GroupInbox.php b/src/Entity/GroupInbox.php index db7834d9c6..975b1b70f0 100644 --- a/src/Entity/GroupInbox.php +++ b/src/Entity/GroupInbox.php @@ -48,6 +48,7 @@ class GroupInbox $this->group_id = $group_id; return $this; } + public function getGroupId(): int { return $this->group_id; @@ -58,6 +59,7 @@ class GroupInbox $this->activity_id = $activity_id; return $this; } + public function getActivityId(): int { return $this->activity_id; @@ -68,6 +70,7 @@ class GroupInbox $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; diff --git a/src/Entity/GroupJoinQueue.php b/src/Entity/GroupJoinQueue.php index 5c34a81da0..15f6ed8634 100644 --- a/src/Entity/GroupJoinQueue.php +++ b/src/Entity/GroupJoinQueue.php @@ -48,6 +48,7 @@ class GroupJoinQueue $this->profile_id = $profile_id; return $this; } + public function getProfileId(): int { return $this->profile_id; @@ -58,6 +59,7 @@ class GroupJoinQueue $this->group_id = $group_id; return $this; } + public function getGroupId(): int { return $this->group_id; @@ -68,6 +70,7 @@ class GroupJoinQueue $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; diff --git a/src/Entity/GroupMember.php b/src/Entity/GroupMember.php index 42c2a01506..a43bae3f1d 100644 --- a/src/Entity/GroupMember.php +++ b/src/Entity/GroupMember.php @@ -51,6 +51,7 @@ class GroupMember $this->group_id = $group_id; return $this; } + public function getGroupId(): int { return $this->group_id; @@ -61,6 +62,7 @@ class GroupMember $this->profile_id = $profile_id; return $this; } + public function getProfileId(): int { return $this->profile_id; @@ -71,6 +73,7 @@ class GroupMember $this->is_admin = $is_admin; return $this; } + public function getIsAdmin(): ?bool { return $this->is_admin; @@ -81,6 +84,7 @@ class GroupMember $this->uri = $uri; return $this; } + public function getUri(): ?string { return $this->uri; @@ -91,6 +95,7 @@ class GroupMember $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -101,6 +106,7 @@ class GroupMember $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/Invitation.php b/src/Entity/Invitation.php index d018ccd128..5e095206da 100644 --- a/src/Entity/Invitation.php +++ b/src/Entity/Invitation.php @@ -51,6 +51,7 @@ class Invitation $this->code = $code; return $this; } + public function getCode(): string { return $this->code; @@ -61,6 +62,7 @@ class Invitation $this->user_id = $user_id; return $this; } + public function getUserId(): int { return $this->user_id; @@ -71,6 +73,7 @@ class Invitation $this->address = $address; return $this; } + public function getAddress(): string { return $this->address; @@ -81,6 +84,7 @@ class Invitation $this->address_type = $address_type; return $this; } + public function getAddressType(): string { return $this->address_type; @@ -91,6 +95,7 @@ class Invitation $this->registered_user_id = $registered_user_id; return $this; } + public function getRegisteredUserId(): ?int { return $this->registered_user_id; @@ -101,6 +106,7 @@ class Invitation $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; diff --git a/src/Entity/LocalGroup.php b/src/Entity/LocalGroup.php index dacb5b7890..718ae807c4 100644 --- a/src/Entity/LocalGroup.php +++ b/src/Entity/LocalGroup.php @@ -49,6 +49,7 @@ class LocalGroup $this->group_id = $group_id; return $this; } + public function getGroupId(): int { return $this->group_id; @@ -59,6 +60,7 @@ class LocalGroup $this->nickname = $nickname; return $this; } + public function getNickname(): ?string { return $this->nickname; @@ -69,6 +71,7 @@ class LocalGroup $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -79,6 +82,7 @@ class LocalGroup $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/LocalUser.php b/src/Entity/LocalUser.php index 108d123e7e..736343c4a1 100644 --- a/src/Entity/LocalUser.php +++ b/src/Entity/LocalUser.php @@ -68,6 +68,7 @@ class LocalUser implements UserInterface $this->nickname = $nickname; return $this; } + public function getNickname(): ?string { return $this->nickname; @@ -78,6 +79,7 @@ class LocalUser implements UserInterface $this->password = $password; return $this; } + public function getPassword(): ?string { return $this->password; @@ -88,6 +90,7 @@ class LocalUser implements UserInterface $this->outgoing_email = $outgoing_email; return $this; } + public function getOutgoingEmail(): ?string { return $this->outgoing_email; @@ -98,6 +101,7 @@ class LocalUser implements UserInterface $this->incoming_email = $incoming_email; return $this; } + public function getIncomingEmail(): ?string { return $this->incoming_email; @@ -108,6 +112,7 @@ class LocalUser implements UserInterface $this->is_email_verified = $is_email_verified; return $this; } + public function getIsEmailVerified(): ?bool { return $this->is_email_verified; @@ -118,6 +123,7 @@ class LocalUser implements UserInterface $this->language = $language; return $this; } + public function getLanguage(): ?string { return $this->language; @@ -128,6 +134,7 @@ class LocalUser implements UserInterface $this->timezone = $timezone; return $this; } + public function getTimezone(): ?string { return $this->timezone; @@ -138,6 +145,7 @@ class LocalUser implements UserInterface $this->phone_number = $phone_number; return $this; } + public function getPhoneNumber(): ?PhoneNumber { return $this->phone_number; @@ -148,6 +156,7 @@ class LocalUser implements UserInterface $this->sms_carrier = $sms_carrier; return $this; } + public function getSmsCarrier(): ?int { return $this->sms_carrier; @@ -158,6 +167,7 @@ class LocalUser implements UserInterface $this->sms_email = $sms_email; return $this; } + public function getSmsEmail(): ?string { return $this->sms_email; @@ -168,6 +178,7 @@ class LocalUser implements UserInterface $this->uri = $uri; return $this; } + public function getUri(): ?string { return $this->uri; @@ -178,6 +189,7 @@ class LocalUser implements UserInterface $this->auto_follow_back = $auto_follow_back; return $this; } + public function getAutoFollowBack(): ?bool { return $this->auto_follow_back; @@ -188,6 +200,7 @@ class LocalUser implements UserInterface $this->follow_policy = $follow_policy; return $this; } + public function getFollowPolicy(): ?int { return $this->follow_policy; @@ -198,6 +211,7 @@ class LocalUser implements UserInterface $this->is_stream_private = $is_stream_private; return $this; } + public function getIsStreamPrivate(): ?bool { return $this->is_stream_private; @@ -208,6 +222,7 @@ class LocalUser implements UserInterface $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -218,6 +233,7 @@ class LocalUser implements UserInterface $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/LocationService.php b/src/Entity/LocationService.php index 0345b1e68b..199ac4f730 100644 --- a/src/Entity/LocationService.php +++ b/src/Entity/LocationService.php @@ -49,6 +49,7 @@ class LocationService $this->id = $id; return $this; } + public function getId(): int { return $this->id; @@ -59,6 +60,7 @@ class LocationService $this->description = $description; return $this; } + public function getDescription(): ?string { return $this->description; @@ -69,6 +71,7 @@ class LocationService $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -79,6 +82,7 @@ class LocationService $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/Notification.php b/src/Entity/Notification.php index 31e36017f7..24f5abdf2c 100644 --- a/src/Entity/Notification.php +++ b/src/Entity/Notification.php @@ -50,6 +50,7 @@ class Notification $this->notice_id = $notice_id; return $this; } + public function getNoticeId(): int { return $this->notice_id; @@ -60,6 +61,7 @@ class Notification $this->profile_id = $profile_id; return $this; } + public function getProfileId(): int { return $this->profile_id; @@ -70,6 +72,7 @@ class Notification $this->reason = $reason; return $this; } + public function getReason(): ?string { return $this->reason; @@ -80,6 +83,7 @@ class Notification $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -90,6 +94,7 @@ class Notification $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/ProfileBlock.php b/src/Entity/ProfileBlock.php index d2dc74510a..419a5d8a98 100644 --- a/src/Entity/ProfileBlock.php +++ b/src/Entity/ProfileBlock.php @@ -48,6 +48,7 @@ class ProfileBlock $this->blocker = $blocker; return $this; } + public function getBlocker(): int { return $this->blocker; @@ -58,6 +59,7 @@ class ProfileBlock $this->blocked = $blocked; return $this; } + public function getBlocked(): int { return $this->blocked; @@ -68,6 +70,7 @@ class ProfileBlock $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/ProfileList.php b/src/Entity/ProfileList.php index d0ba679bc5..e56e0a4f54 100644 --- a/src/Entity/ProfileList.php +++ b/src/Entity/ProfileList.php @@ -56,6 +56,7 @@ class ProfileList $this->id = $id; return $this; } + public function getId(): int { return $this->id; @@ -66,6 +67,7 @@ class ProfileList $this->tagger = $tagger; return $this; } + public function getTagger(): int { return $this->tagger; @@ -76,6 +78,7 @@ class ProfileList $this->tag = $tag; return $this; } + public function getTag(): string { return $this->tag; @@ -86,6 +89,7 @@ class ProfileList $this->description = $description; return $this; } + public function getDescription(): ?string { return $this->description; @@ -96,6 +100,7 @@ class ProfileList $this->private = $private; return $this; } + public function getPrivate(): ?bool { return $this->private; @@ -106,6 +111,7 @@ class ProfileList $this->uri = $uri; return $this; } + public function getUri(): ?string { return $this->uri; @@ -116,6 +122,7 @@ class ProfileList $this->mainpage = $mainpage; return $this; } + public function getMainpage(): ?string { return $this->mainpage; @@ -126,6 +133,7 @@ class ProfileList $this->tagged_count = $tagged_count; return $this; } + public function getTaggedCount(): ?int { return $this->tagged_count; @@ -136,6 +144,7 @@ class ProfileList $this->follower_count = $follower_count; return $this; } + public function getFollowerCount(): ?int { return $this->follower_count; @@ -146,6 +155,7 @@ class ProfileList $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -156,6 +166,7 @@ class ProfileList $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/ProfilePrefs.php b/src/Entity/ProfilePrefs.php index 650f84c1f9..1b1e0fe74b 100644 --- a/src/Entity/ProfilePrefs.php +++ b/src/Entity/ProfilePrefs.php @@ -51,6 +51,7 @@ class ProfilePrefs $this->profile_id = $profile_id; return $this; } + public function getProfileId(): int { return $this->profile_id; @@ -61,6 +62,7 @@ class ProfilePrefs $this->namespace = $namespace; return $this; } + public function getNamespace(): string { return $this->namespace; @@ -71,6 +73,7 @@ class ProfilePrefs $this->topic = $topic; return $this; } + public function getTopic(): string { return $this->topic; @@ -81,6 +84,7 @@ class ProfilePrefs $this->data = $data; return $this; } + public function getData() { return $this->data; @@ -91,6 +95,7 @@ class ProfilePrefs $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -101,6 +106,7 @@ class ProfilePrefs $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/ProfileRole.php b/src/Entity/ProfileRole.php index cce69fa4a2..50b0becf13 100644 --- a/src/Entity/ProfileRole.php +++ b/src/Entity/ProfileRole.php @@ -48,6 +48,7 @@ class ProfileRole $this->profile_id = $profile_id; return $this; } + public function getProfileId(): int { return $this->profile_id; @@ -58,6 +59,7 @@ class ProfileRole $this->role = $role; return $this; } + public function getRole(): string { return $this->role; @@ -68,6 +70,7 @@ class ProfileRole $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; diff --git a/src/Entity/ProfileTag.php b/src/Entity/ProfileTag.php index b44a53a7e3..3bbb8307f9 100644 --- a/src/Entity/ProfileTag.php +++ b/src/Entity/ProfileTag.php @@ -50,6 +50,7 @@ class ProfileTag $this->tagger = $tagger; return $this; } + public function getTagger(): int { return $this->tagger; @@ -60,6 +61,7 @@ class ProfileTag $this->tagged = $tagged; return $this; } + public function getTagged(): int { return $this->tagged; @@ -70,6 +72,7 @@ class ProfileTag $this->tag = $tag; return $this; } + public function getTag(): string { return $this->tag; @@ -80,6 +83,7 @@ class ProfileTag $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/ProfileTagFollow.php b/src/Entity/ProfileTagFollow.php index 3a3a3680c5..1553809993 100644 --- a/src/Entity/ProfileTagFollow.php +++ b/src/Entity/ProfileTagFollow.php @@ -49,6 +49,7 @@ class ProfileTagFollow $this->profile_tag_id = $profile_tag_id; return $this; } + public function getProfileTagId(): int { return $this->profile_tag_id; @@ -59,6 +60,7 @@ class ProfileTagFollow $this->profile_id = $profile_id; return $this; } + public function getProfileId(): int { return $this->profile_id; @@ -69,6 +71,7 @@ class ProfileTagFollow $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -79,6 +82,7 @@ class ProfileTagFollow $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/RelatedGroup.php b/src/Entity/RelatedGroup.php index d5fb729d53..86815174d4 100644 --- a/src/Entity/RelatedGroup.php +++ b/src/Entity/RelatedGroup.php @@ -48,6 +48,7 @@ class RelatedGroup $this->group_id = $group_id; return $this; } + public function getGroupId(): int { return $this->group_id; @@ -58,6 +59,7 @@ class RelatedGroup $this->related_group_id = $related_group_id; return $this; } + public function getRelatedGroupId(): int { return $this->related_group_id; @@ -68,6 +70,7 @@ class RelatedGroup $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; diff --git a/src/Entity/RememberMeToken.php b/src/Entity/RememberMeToken.php index e90088639e..f4927e229f 100644 --- a/src/Entity/RememberMeToken.php +++ b/src/Entity/RememberMeToken.php @@ -48,6 +48,7 @@ class RememberMeToken $this->series = $series; return $this; } + public function getSeries(): string { return $this->series; @@ -58,6 +59,7 @@ class RememberMeToken $this->value = $value; return $this; } + public function getValue(): string { return $this->value; @@ -68,6 +70,7 @@ class RememberMeToken $this->lastUsed = $lastUsed; return $this; } + public function getLastUsed(): DateTimeInterface { return $this->lastUsed; @@ -78,6 +81,7 @@ class RememberMeToken $this->class = $class; return $this; } + public function getClass(): string { return $this->class; @@ -88,6 +92,7 @@ class RememberMeToken $this->username = $username; return $this; } + public function getUsername(): string { return $this->username; diff --git a/src/Entity/ReservedNickname.php b/src/Entity/ReservedNickname.php index e705254a09..ac4fdadc6e 100644 --- a/src/Entity/ReservedNickname.php +++ b/src/Entity/ReservedNickname.php @@ -47,6 +47,7 @@ class ReservedNickname $this->nickname = $nickname; return $this; } + public function getNickname(): string { return $this->nickname; @@ -57,6 +58,7 @@ class ReservedNickname $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; diff --git a/src/Entity/SmsCarrier.php b/src/Entity/SmsCarrier.php index 19f998434c..a4cc4f439f 100644 --- a/src/Entity/SmsCarrier.php +++ b/src/Entity/SmsCarrier.php @@ -50,6 +50,7 @@ class SmsCarrier $this->id = $id; return $this; } + public function getId(): int { return $this->id; @@ -60,6 +61,7 @@ class SmsCarrier $this->name = $name; return $this; } + public function getName(): ?string { return $this->name; @@ -70,6 +72,7 @@ class SmsCarrier $this->email_pattern = $email_pattern; return $this; } + public function getEmailPattern(): string { return $this->email_pattern; @@ -80,6 +83,7 @@ class SmsCarrier $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -90,6 +94,7 @@ class SmsCarrier $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/UserLocationPrefs.php b/src/Entity/UserLocationPrefs.php index 0b56f2bca7..6503b5a739 100644 --- a/src/Entity/UserLocationPrefs.php +++ b/src/Entity/UserLocationPrefs.php @@ -47,6 +47,7 @@ class UserLocationPrefs $this->user_id = $user_id; return $this; } + public function getUserId(): int { return $this->user_id; @@ -57,6 +58,7 @@ class UserLocationPrefs $this->share_location = $share_location; return $this; } + public function getShareLocation(): ?bool { return $this->share_location; @@ -67,6 +69,7 @@ class UserLocationPrefs $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -77,6 +80,7 @@ class UserLocationPrefs $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/UserNotificationPrefs.php b/src/Entity/UserNotificationPrefs.php index 4c514cb799..7925fde439 100644 --- a/src/Entity/UserNotificationPrefs.php +++ b/src/Entity/UserNotificationPrefs.php @@ -57,6 +57,7 @@ class UserNotificationPrefs $this->user_id = $user_id; return $this; } + public function getUserId(): int { return $this->user_id; @@ -67,6 +68,7 @@ class UserNotificationPrefs $this->transport = $transport; return $this; } + public function getTransport(): string { return $this->transport; @@ -77,6 +79,7 @@ class UserNotificationPrefs $this->target_profile_id = $target_profile_id; return $this; } + public function getTargetProfileId(): ?int { return $this->target_profile_id; @@ -87,6 +90,7 @@ class UserNotificationPrefs $this->activity_by_followed = $activity_by_followed; return $this; } + public function getActivityByFollowed(): bool { return $this->activity_by_followed; @@ -97,6 +101,7 @@ class UserNotificationPrefs $this->mention = $mention; return $this; } + public function getMention(): bool { return $this->mention; @@ -107,6 +112,7 @@ class UserNotificationPrefs $this->reply = $reply; return $this; } + public function getReply(): bool { return $this->reply; @@ -117,6 +123,7 @@ class UserNotificationPrefs $this->follow = $follow; return $this; } + public function getFollow(): bool { return $this->follow; @@ -127,6 +134,7 @@ class UserNotificationPrefs $this->favorite = $favorite; return $this; } + public function getFavorite(): bool { return $this->favorite; @@ -137,6 +145,7 @@ class UserNotificationPrefs $this->nudge = $nudge; return $this; } + public function getNudge(): bool { return $this->nudge; @@ -147,6 +156,7 @@ class UserNotificationPrefs $this->dm = $dm; return $this; } + public function getDm(): bool { return $this->dm; @@ -157,6 +167,7 @@ class UserNotificationPrefs $this->post_on_status_change = $post_on_status_change; return $this; } + public function getPostOnStatusChange(): bool { return $this->post_on_status_change; @@ -167,6 +178,7 @@ class UserNotificationPrefs $this->enable_posting = $enable_posting; return $this; } + public function getEnablePosting(): ?bool { return $this->enable_posting; @@ -177,6 +189,7 @@ class UserNotificationPrefs $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -187,6 +200,7 @@ class UserNotificationPrefs $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Entity/UserUrlShortenerPrefs.php b/src/Entity/UserUrlShortenerPrefs.php index b7ce777a44..e5aad7799d 100644 --- a/src/Entity/UserUrlShortenerPrefs.php +++ b/src/Entity/UserUrlShortenerPrefs.php @@ -51,6 +51,7 @@ class UserUrlShortenerPrefs $this->user_id = $user_id; return $this; } + public function getUserId(): int { return $this->user_id; @@ -61,6 +62,7 @@ class UserUrlShortenerPrefs $this->url_shortening_service = $url_shortening_service; return $this; } + public function getUrlShorteningService(): ?string { return $this->url_shortening_service; @@ -71,6 +73,7 @@ class UserUrlShortenerPrefs $this->max_url_length = $max_url_length; return $this; } + public function getMaxUrlLength(): int { return $this->max_url_length; @@ -81,6 +84,7 @@ class UserUrlShortenerPrefs $this->max_notice_length = $max_notice_length; return $this; } + public function getMaxNoticeLength(): int { return $this->max_notice_length; @@ -91,6 +95,7 @@ class UserUrlShortenerPrefs $this->created = $created; return $this; } + public function getCreated(): DateTimeInterface { return $this->created; @@ -101,6 +106,7 @@ class UserUrlShortenerPrefs $this->modified = $modified; return $this; } + public function getModified(): DateTimeInterface { return $this->modified; diff --git a/src/Util/Form/ProfileArrayTransformer.php b/src/Util/Form/ProfileArrayTransformer.php new file mode 100644 index 0000000000..8a53e57a54 --- /dev/null +++ b/src/Util/Form/ProfileArrayTransformer.php @@ -0,0 +1,58 @@ +. + +// }}} + +/** + * Transform between string and list of typed profiles + * + * @package GNUsocial + * @category Form + * + * @author Hugo Sales + * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ + +namespace App\Util\Form; + +class ProfileArrayTransformer extends ArrayTransformer +{ + /** + * @param array $a + * + * @return string + */ + public function transform($a) + { + // TODO convert each to string + $s = parent::transform($a); + } + + /** + * @param string $s + * + * @return array + */ + public function reverseTransform($s) + { + $a = parent::reverseTransform($s); + // TODO convert each to profile + } +}