[AUTOGENERATED] Update autogenerated code

This commit is contained in:
Hugo Sales 2020-08-08 16:11:18 +00:00 committed by Hugo Sales
parent 689a5df670
commit 699f25a397
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
36 changed files with 260 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -0,0 +1,58 @@
<?php
// {{{ License
// This file is part of GNU social - https://www.gnu.org/software/social
//
// GNU social is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// GNU social is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
// }}}
/**
* Transform between string and list of typed profiles
*
* @package GNUsocial
* @category Form
*
* @author Hugo Sales <hugo@fc.up.pt>
* @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
}
}