[FORMATTING] Cherry-pick of Diogo's 763ac735c0758624ebd5957993dc0676b865927a

This commit is contained in:
Hugo Sales 2020-05-11 17:39:12 +00:00 committed by Hugo Sales
parent c67cf336d4
commit 0d5f66e8b8
65 changed files with 505 additions and 114 deletions

View File

@ -50,6 +50,7 @@ class Attention
$this->notice_id = $notice_id; $this->notice_id = $notice_id;
return $this; return $this;
} }
public function getNoticeId(): int public function getNoticeId(): int
{ {
return $this->notice_id; return $this->notice_id;
@ -60,6 +61,7 @@ class Attention
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -70,6 +72,7 @@ class Attention
$this->reason = $reason; $this->reason = $reason;
return $this; return $this;
} }
public function getReason(): ?string public function getReason(): ?string
{ {
return $this->reason; return $this->reason;
@ -80,6 +83,7 @@ class Attention
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -90,6 +94,7 @@ class Attention
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -53,6 +53,7 @@ class Avatar
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -63,6 +64,7 @@ class Avatar
$this->original = $original; $this->original = $original;
return $this; return $this;
} }
public function getOriginal(): ?bool public function getOriginal(): ?bool
{ {
return $this->original; return $this->original;
@ -73,6 +75,7 @@ class Avatar
$this->width = $width; $this->width = $width;
return $this; return $this;
} }
public function getWidth(): int public function getWidth(): int
{ {
return $this->width; return $this->width;
@ -83,6 +86,7 @@ class Avatar
$this->height = $height; $this->height = $height;
return $this; return $this;
} }
public function getHeight(): int public function getHeight(): int
{ {
return $this->height; return $this->height;
@ -93,6 +97,7 @@ class Avatar
$this->mediatype = $mediatype; $this->mediatype = $mediatype;
return $this; return $this;
} }
public function getMediatype(): string public function getMediatype(): string
{ {
return $this->mediatype; return $this->mediatype;
@ -103,6 +108,7 @@ class Avatar
$this->filename = $filename; $this->filename = $filename;
return $this; return $this;
} }
public function getFilename(): ?string public function getFilename(): ?string
{ {
return $this->filename; return $this->filename;
@ -113,6 +119,7 @@ class Avatar
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -123,6 +130,7 @@ class Avatar
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -46,6 +46,7 @@ class Config
$this->section = $section; $this->section = $section;
return $this; return $this;
} }
public function getSection(): string public function getSection(): string
{ {
return $this->section; return $this->section;
@ -56,6 +57,7 @@ class Config
$this->setting = $setting; $this->setting = $setting;
return $this; return $this;
} }
public function getSetting(): string public function getSetting(): string
{ {
return $this->setting; return $this->setting;
@ -66,6 +68,7 @@ class Config
$this->value = $value; $this->value = $value;
return $this; return $this;
} }
public function getValue(): ?string public function getValue(): ?string
{ {
return $this->value; return $this->value;

View File

@ -53,6 +53,7 @@ class ConfirmAddress
$this->code = $code; $this->code = $code;
return $this; return $this;
} }
public function getCode(): string public function getCode(): string
{ {
return $this->code; return $this->code;
@ -63,6 +64,7 @@ class ConfirmAddress
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): ?int public function getUserId(): ?int
{ {
return $this->user_id; return $this->user_id;
@ -73,6 +75,7 @@ class ConfirmAddress
$this->address = $address; $this->address = $address;
return $this; return $this;
} }
public function getAddress(): string public function getAddress(): string
{ {
return $this->address; return $this->address;
@ -83,6 +86,7 @@ class ConfirmAddress
$this->address_extra = $address_extra; $this->address_extra = $address_extra;
return $this; return $this;
} }
public function getAddressExtra(): ?string public function getAddressExtra(): ?string
{ {
return $this->address_extra; return $this->address_extra;
@ -93,6 +97,7 @@ class ConfirmAddress
$this->address_type = $address_type; $this->address_type = $address_type;
return $this; return $this;
} }
public function getAddressType(): string public function getAddressType(): string
{ {
return $this->address_type; return $this->address_type;
@ -103,6 +108,7 @@ class ConfirmAddress
$this->claimed = $claimed; $this->claimed = $claimed;
return $this; return $this;
} }
public function getClaimed(): ?DateTimeInterface public function getClaimed(): ?DateTimeInterface
{ {
return $this->claimed; return $this->claimed;
@ -113,6 +119,7 @@ class ConfirmAddress
$this->sent = $sent; $this->sent = $sent;
return $this; return $this;
} }
public function getSent(): ?DateTimeInterface public function getSent(): ?DateTimeInterface
{ {
return $this->sent; return $this->sent;
@ -123,6 +130,7 @@ class ConfirmAddress
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -50,6 +50,7 @@ class Consumer
$this->consumer_key = $consumer_key; $this->consumer_key = $consumer_key;
return $this; return $this;
} }
public function getConsumerKey(): string public function getConsumerKey(): string
{ {
return $this->consumer_key; return $this->consumer_key;
@ -60,6 +61,7 @@ class Consumer
$this->consumer_secret = $consumer_secret; $this->consumer_secret = $consumer_secret;
return $this; return $this;
} }
public function getConsumerSecret(): string public function getConsumerSecret(): string
{ {
return $this->consumer_secret; return $this->consumer_secret;
@ -70,6 +72,7 @@ class Consumer
$this->seed = $seed; $this->seed = $seed;
return $this; return $this;
} }
public function getSeed(): string public function getSeed(): string
{ {
return $this->seed; return $this->seed;
@ -80,6 +83,7 @@ class Consumer
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -90,6 +94,7 @@ class Consumer
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -48,6 +48,7 @@ class Conversation
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -58,6 +59,7 @@ class Conversation
$this->uri = $uri; $this->uri = $uri;
return $this; return $this;
} }
public function getUri(): string public function getUri(): string
{ {
return $this->uri; return $this->uri;
@ -68,6 +70,7 @@ class Conversation
$this->url = $url; $this->url = $url;
return $this; return $this;
} }
public function getUrl(): ?string public function getUrl(): ?string
{ {
return $this->url; return $this->url;
@ -78,6 +81,7 @@ class Conversation
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -88,6 +92,7 @@ class Conversation
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -58,6 +58,7 @@ class File
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -68,6 +69,7 @@ class File
$this->urlhash = $urlhash; $this->urlhash = $urlhash;
return $this; return $this;
} }
public function getUrlhash(): string public function getUrlhash(): string
{ {
return $this->urlhash; return $this->urlhash;
@ -78,6 +80,7 @@ class File
$this->url = $url; $this->url = $url;
return $this; return $this;
} }
public function getUrl(): ?string public function getUrl(): ?string
{ {
return $this->url; return $this->url;
@ -88,6 +91,7 @@ class File
$this->filehash = $filehash; $this->filehash = $filehash;
return $this; return $this;
} }
public function getFilehash(): ?string public function getFilehash(): ?string
{ {
return $this->filehash; return $this->filehash;
@ -98,6 +102,7 @@ class File
$this->mimetype = $mimetype; $this->mimetype = $mimetype;
return $this; return $this;
} }
public function getMimetype(): ?string public function getMimetype(): ?string
{ {
return $this->mimetype; return $this->mimetype;
@ -108,6 +113,7 @@ class File
$this->size = $size; $this->size = $size;
return $this; return $this;
} }
public function getSize(): ?int public function getSize(): ?int
{ {
return $this->size; return $this->size;
@ -118,6 +124,7 @@ class File
$this->title = $title; $this->title = $title;
return $this; return $this;
} }
public function getTitle(): ?string public function getTitle(): ?string
{ {
return $this->title; return $this->title;
@ -128,6 +135,7 @@ class File
$this->date = $date; $this->date = $date;
return $this; return $this;
} }
public function getDate(): ?int public function getDate(): ?int
{ {
return $this->date; return $this->date;
@ -138,6 +146,7 @@ class File
$this->protected = $protected; $this->protected = $protected;
return $this; return $this;
} }
public function getProtected(): ?int public function getProtected(): ?int
{ {
return $this->protected; return $this->protected;
@ -148,6 +157,7 @@ class File
$this->filename = $filename; $this->filename = $filename;
return $this; return $this;
} }
public function getFilename(): ?string public function getFilename(): ?string
{ {
return $this->filename; return $this->filename;
@ -158,6 +168,7 @@ class File
$this->width = $width; $this->width = $width;
return $this; return $this;
} }
public function getWidth(): ?int public function getWidth(): ?int
{ {
return $this->width; return $this->width;
@ -168,6 +179,7 @@ class File
$this->height = $height; $this->height = $height;
return $this; return $this;
} }
public function getHeight(): ?int public function getHeight(): ?int
{ {
return $this->height; return $this->height;
@ -178,6 +190,7 @@ class File
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -51,6 +51,7 @@ class FileRedirection
$this->urlhash = $urlhash; $this->urlhash = $urlhash;
return $this; return $this;
} }
public function getUrlhash(): string public function getUrlhash(): string
{ {
return $this->urlhash; return $this->urlhash;
@ -61,6 +62,7 @@ class FileRedirection
$this->url = $url; $this->url = $url;
return $this; return $this;
} }
public function getUrl(): ?string public function getUrl(): ?string
{ {
return $this->url; return $this->url;
@ -71,6 +73,7 @@ class FileRedirection
$this->file_id = $file_id; $this->file_id = $file_id;
return $this; return $this;
} }
public function getFileId(): ?int public function getFileId(): ?int
{ {
return $this->file_id; return $this->file_id;
@ -81,6 +84,7 @@ class FileRedirection
$this->redirections = $redirections; $this->redirections = $redirections;
return $this; return $this;
} }
public function getRedirections(): ?int public function getRedirections(): ?int
{ {
return $this->redirections; return $this->redirections;
@ -91,6 +95,7 @@ class FileRedirection
$this->httpcode = $httpcode; $this->httpcode = $httpcode;
return $this; return $this;
} }
public function getHttpcode(): ?int public function getHttpcode(): ?int
{ {
return $this->httpcode; return $this->httpcode;
@ -101,6 +106,7 @@ class FileRedirection
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -52,6 +52,7 @@ class FileThumbnail
$this->file_id = $file_id; $this->file_id = $file_id;
return $this; return $this;
} }
public function getFileId(): int public function getFileId(): int
{ {
return $this->file_id; return $this->file_id;
@ -62,6 +63,7 @@ class FileThumbnail
$this->urlhash = $urlhash; $this->urlhash = $urlhash;
return $this; return $this;
} }
public function getUrlhash(): ?string public function getUrlhash(): ?string
{ {
return $this->urlhash; return $this->urlhash;
@ -72,6 +74,7 @@ class FileThumbnail
$this->url = $url; $this->url = $url;
return $this; return $this;
} }
public function getUrl(): ?string public function getUrl(): ?string
{ {
return $this->url; return $this->url;
@ -82,6 +85,7 @@ class FileThumbnail
$this->filename = $filename; $this->filename = $filename;
return $this; return $this;
} }
public function getFilename(): ?string public function getFilename(): ?string
{ {
return $this->filename; return $this->filename;
@ -92,6 +96,7 @@ class FileThumbnail
$this->width = $width; $this->width = $width;
return $this; return $this;
} }
public function getWidth(): int public function getWidth(): int
{ {
return $this->width; return $this->width;
@ -102,6 +107,7 @@ class FileThumbnail
$this->height = $height; $this->height = $height;
return $this; return $this;
} }
public function getHeight(): int public function getHeight(): int
{ {
return $this->height; return $this->height;
@ -112,6 +118,7 @@ class FileThumbnail
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -48,6 +48,7 @@ class FileToPost
$this->file_id = $file_id; $this->file_id = $file_id;
return $this; return $this;
} }
public function getFileId(): int public function getFileId(): int
{ {
return $this->file_id; return $this->file_id;
@ -58,6 +59,7 @@ class FileToPost
$this->post_id = $post_id; $this->post_id = $post_id;
return $this; return $this;
} }
public function getPostId(): int public function getPostId(): int
{ {
return $this->post_id; return $this->post_id;
@ -68,6 +70,7 @@ class FileToPost
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -56,6 +56,7 @@ class ForeignLink
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): int public function getUserId(): int
{ {
return $this->user_id; return $this->user_id;
@ -66,6 +67,7 @@ class ForeignLink
$this->foreign_id = $foreign_id; $this->foreign_id = $foreign_id;
return $this; return $this;
} }
public function getForeignId(): int public function getForeignId(): int
{ {
return $this->foreign_id; return $this->foreign_id;
@ -76,6 +78,7 @@ class ForeignLink
$this->service = $service; $this->service = $service;
return $this; return $this;
} }
public function getService(): int public function getService(): int
{ {
return $this->service; return $this->service;
@ -86,6 +89,7 @@ class ForeignLink
$this->credentials = $credentials; $this->credentials = $credentials;
return $this; return $this;
} }
public function getCredentials(): ?string public function getCredentials(): ?string
{ {
return $this->credentials; return $this->credentials;
@ -96,6 +100,7 @@ class ForeignLink
$this->noticesync = $noticesync; $this->noticesync = $noticesync;
return $this; return $this;
} }
public function getNoticesync(): int public function getNoticesync(): int
{ {
return $this->noticesync; return $this->noticesync;
@ -106,6 +111,7 @@ class ForeignLink
$this->friendsync = $friendsync; $this->friendsync = $friendsync;
return $this; return $this;
} }
public function getFriendsync(): int public function getFriendsync(): int
{ {
return $this->friendsync; return $this->friendsync;
@ -116,6 +122,7 @@ class ForeignLink
$this->profilesync = $profilesync; $this->profilesync = $profilesync;
return $this; return $this;
} }
public function getProfilesync(): int public function getProfilesync(): int
{ {
return $this->profilesync; return $this->profilesync;
@ -126,6 +133,7 @@ class ForeignLink
$this->last_noticesync = $last_noticesync; $this->last_noticesync = $last_noticesync;
return $this; return $this;
} }
public function getLastNoticesync(): ?DateTimeInterface public function getLastNoticesync(): ?DateTimeInterface
{ {
return $this->last_noticesync; return $this->last_noticesync;
@ -136,6 +144,7 @@ class ForeignLink
$this->last_friendsync = $last_friendsync; $this->last_friendsync = $last_friendsync;
return $this; return $this;
} }
public function getLastFriendsync(): ?DateTimeInterface public function getLastFriendsync(): ?DateTimeInterface
{ {
return $this->last_friendsync; return $this->last_friendsync;
@ -146,6 +155,7 @@ class ForeignLink
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -156,6 +166,7 @@ class ForeignLink
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -50,6 +50,7 @@ class ForeignService
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -60,6 +61,7 @@ class ForeignService
$this->name = $name; $this->name = $name;
return $this; return $this;
} }
public function getName(): string public function getName(): string
{ {
return $this->name; return $this->name;
@ -70,6 +72,7 @@ class ForeignService
$this->description = $description; $this->description = $description;
return $this; return $this;
} }
public function getDescription(): ?string public function getDescription(): ?string
{ {
return $this->description; return $this->description;
@ -80,6 +83,7 @@ class ForeignService
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -90,6 +94,7 @@ class ForeignService
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -49,6 +49,7 @@ class ForeignSubscription
$this->service = $service; $this->service = $service;
return $this; return $this;
} }
public function getService(): int public function getService(): int
{ {
return $this->service; return $this->service;
@ -59,6 +60,7 @@ class ForeignSubscription
$this->subscriber = $subscriber; $this->subscriber = $subscriber;
return $this; return $this;
} }
public function getSubscriber(): int public function getSubscriber(): int
{ {
return $this->subscriber; return $this->subscriber;
@ -69,6 +71,7 @@ class ForeignSubscription
$this->subscribed = $subscribed; $this->subscribed = $subscribed;
return $this; return $this;
} }
public function getSubscribed(): int public function getSubscribed(): int
{ {
return $this->subscribed; return $this->subscribed;
@ -79,6 +82,7 @@ class ForeignSubscription
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;

View File

@ -51,6 +51,7 @@ class ForeignUser
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -61,6 +62,7 @@ class ForeignUser
$this->service = $service; $this->service = $service;
return $this; return $this;
} }
public function getService(): int public function getService(): int
{ {
return $this->service; return $this->service;
@ -71,6 +73,7 @@ class ForeignUser
$this->uri = $uri; $this->uri = $uri;
return $this; return $this;
} }
public function getUri(): string public function getUri(): string
{ {
return $this->uri; return $this->uri;
@ -81,6 +84,7 @@ class ForeignUser
$this->nickname = $nickname; $this->nickname = $nickname;
return $this; return $this;
} }
public function getNickname(): ?string public function getNickname(): ?string
{ {
return $this->nickname; return $this->nickname;
@ -91,6 +95,7 @@ class ForeignUser
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -101,6 +106,7 @@ class ForeignUser
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -48,6 +48,7 @@ class GroupAlias
$this->alias = $alias; $this->alias = $alias;
return $this; return $this;
} }
public function getAlias(): string public function getAlias(): string
{ {
return $this->alias; return $this->alias;
@ -58,6 +59,7 @@ class GroupAlias
$this->group_id = $group_id; $this->group_id = $group_id;
return $this; return $this;
} }
public function getGroupId(): int public function getGroupId(): int
{ {
return $this->group_id; return $this->group_id;
@ -68,6 +70,7 @@ class GroupAlias
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -49,6 +49,7 @@ class GroupBlock
$this->group_id = $group_id; $this->group_id = $group_id;
return $this; return $this;
} }
public function getGroupId(): int public function getGroupId(): int
{ {
return $this->group_id; return $this->group_id;
@ -59,6 +60,7 @@ class GroupBlock
$this->blocked = $blocked; $this->blocked = $blocked;
return $this; return $this;
} }
public function getBlocked(): int public function getBlocked(): int
{ {
return $this->blocked; return $this->blocked;
@ -69,6 +71,7 @@ class GroupBlock
$this->blocker = $blocker; $this->blocker = $blocker;
return $this; return $this;
} }
public function getBlocker(): int public function getBlocker(): int
{ {
return $this->blocker; return $this->blocker;
@ -79,6 +82,7 @@ class GroupBlock
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -48,6 +48,7 @@ class GroupInbox
$this->group_id = $group_id; $this->group_id = $group_id;
return $this; return $this;
} }
public function getGroupId(): int public function getGroupId(): int
{ {
return $this->group_id; return $this->group_id;
@ -58,6 +59,7 @@ class GroupInbox
$this->notice_id = $notice_id; $this->notice_id = $notice_id;
return $this; return $this;
} }
public function getNoticeId(): int public function getNoticeId(): int
{ {
return $this->notice_id; return $this->notice_id;
@ -68,6 +70,7 @@ class GroupInbox
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;

View File

@ -48,6 +48,7 @@ class GroupJoinQueue
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -58,6 +59,7 @@ class GroupJoinQueue
$this->group_id = $group_id; $this->group_id = $group_id;
return $this; return $this;
} }
public function getGroupId(): int public function getGroupId(): int
{ {
return $this->group_id; return $this->group_id;
@ -68,6 +70,7 @@ class GroupJoinQueue
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;

View File

@ -51,6 +51,7 @@ class GroupMember
$this->group_id = $group_id; $this->group_id = $group_id;
return $this; return $this;
} }
public function getGroupId(): int public function getGroupId(): int
{ {
return $this->group_id; return $this->group_id;
@ -61,6 +62,7 @@ class GroupMember
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -71,6 +73,7 @@ class GroupMember
$this->is_admin = $is_admin; $this->is_admin = $is_admin;
return $this; return $this;
} }
public function getIsAdmin(): ?bool public function getIsAdmin(): ?bool
{ {
return $this->is_admin; return $this->is_admin;
@ -81,6 +84,7 @@ class GroupMember
$this->uri = $uri; $this->uri = $uri;
return $this; return $this;
} }
public function getUri(): ?string public function getUri(): ?string
{ {
return $this->uri; return $this->uri;
@ -91,6 +95,7 @@ class GroupMember
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -101,6 +106,7 @@ class GroupMember
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -51,6 +51,7 @@ class Invitation
$this->code = $code; $this->code = $code;
return $this; return $this;
} }
public function getCode(): string public function getCode(): string
{ {
return $this->code; return $this->code;
@ -61,6 +62,7 @@ class Invitation
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): int public function getUserId(): int
{ {
return $this->user_id; return $this->user_id;
@ -71,6 +73,7 @@ class Invitation
$this->address = $address; $this->address = $address;
return $this; return $this;
} }
public function getAddress(): string public function getAddress(): string
{ {
return $this->address; return $this->address;
@ -81,6 +84,7 @@ class Invitation
$this->address_type = $address_type; $this->address_type = $address_type;
return $this; return $this;
} }
public function getAddressType(): string public function getAddressType(): string
{ {
return $this->address_type; return $this->address_type;
@ -91,6 +95,7 @@ class Invitation
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -101,6 +106,7 @@ class Invitation
$this->registered_user_id = $registered_user_id; $this->registered_user_id = $registered_user_id;
return $this; return $this;
} }
public function getRegisteredUserId(): ?int public function getRegisteredUserId(): ?int
{ {
return $this->registered_user_id; return $this->registered_user_id;

View File

@ -49,6 +49,7 @@ class LocalGroup
$this->group_id = $group_id; $this->group_id = $group_id;
return $this; return $this;
} }
public function getGroupId(): int public function getGroupId(): int
{ {
return $this->group_id; return $this->group_id;
@ -59,6 +60,7 @@ class LocalGroup
$this->nickname = $nickname; $this->nickname = $nickname;
return $this; return $this;
} }
public function getNickname(): ?string public function getNickname(): ?string
{ {
return $this->nickname; return $this->nickname;
@ -69,6 +71,7 @@ class LocalGroup
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -79,6 +82,7 @@ class LocalGroup
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -49,6 +49,7 @@ class LocationNamespace
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -59,6 +60,7 @@ class LocationNamespace
$this->description = $description; $this->description = $description;
return $this; return $this;
} }
public function getDescription(): ?string public function getDescription(): ?string
{ {
return $this->description; return $this->description;
@ -69,6 +71,7 @@ class LocationNamespace
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -79,6 +82,7 @@ class LocationNamespace
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -49,6 +49,7 @@ class LoginToken
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): int public function getUserId(): int
{ {
return $this->user_id; return $this->user_id;
@ -59,6 +60,7 @@ class LoginToken
$this->token = $token; $this->token = $token;
return $this; return $this;
} }
public function getToken(): string public function getToken(): string
{ {
return $this->token; return $this->token;
@ -69,6 +71,7 @@ class LoginToken
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -79,6 +82,7 @@ class LoginToken
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -51,6 +51,7 @@ class Nonce
$this->consumer_key = $consumer_key; $this->consumer_key = $consumer_key;
return $this; return $this;
} }
public function getConsumerKey(): string public function getConsumerKey(): string
{ {
return $this->consumer_key; return $this->consumer_key;
@ -61,6 +62,7 @@ class Nonce
$this->tok = $tok; $this->tok = $tok;
return $this; return $this;
} }
public function getTok(): ?string public function getTok(): ?string
{ {
return $this->tok; return $this->tok;
@ -71,6 +73,7 @@ class Nonce
$this->nonce = $nonce; $this->nonce = $nonce;
return $this; return $this;
} }
public function getNonce(): string public function getNonce(): string
{ {
return $this->nonce; return $this->nonce;
@ -81,6 +84,7 @@ class Nonce
$this->ts = $ts; $this->ts = $ts;
return $this; return $this;
} }
public function getTs(): DateTimeInterface public function getTs(): DateTimeInterface
{ {
return $this->ts; return $this->ts;
@ -91,6 +95,7 @@ class Nonce
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -101,6 +106,7 @@ class Nonce
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -61,6 +61,7 @@ class Notice
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -71,6 +72,7 @@ class Notice
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -81,6 +83,7 @@ class Notice
$this->uri = $uri; $this->uri = $uri;
return $this; return $this;
} }
public function getUri(): ?string public function getUri(): ?string
{ {
return $this->uri; return $this->uri;
@ -91,6 +94,7 @@ class Notice
$this->content = $content; $this->content = $content;
return $this; return $this;
} }
public function getContent(): ?string public function getContent(): ?string
{ {
return $this->content; return $this->content;
@ -101,6 +105,7 @@ class Notice
$this->rendered = $rendered; $this->rendered = $rendered;
return $this; return $this;
} }
public function getRendered(): ?string public function getRendered(): ?string
{ {
return $this->rendered; return $this->rendered;
@ -111,6 +116,7 @@ class Notice
$this->url = $url; $this->url = $url;
return $this; return $this;
} }
public function getUrl(): ?string public function getUrl(): ?string
{ {
return $this->url; return $this->url;
@ -121,6 +127,7 @@ class Notice
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -131,6 +138,7 @@ class Notice
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;
@ -141,6 +149,7 @@ class Notice
$this->reply_to = $reply_to; $this->reply_to = $reply_to;
return $this; return $this;
} }
public function getReplyTo(): ?int public function getReplyTo(): ?int
{ {
return $this->reply_to; return $this->reply_to;
@ -151,6 +160,7 @@ class Notice
$this->is_local = $is_local; $this->is_local = $is_local;
return $this; return $this;
} }
public function getIsLocal(): ?int public function getIsLocal(): ?int
{ {
return $this->is_local; return $this->is_local;
@ -161,6 +171,7 @@ class Notice
$this->source = $source; $this->source = $source;
return $this; return $this;
} }
public function getSource(): ?string public function getSource(): ?string
{ {
return $this->source; return $this->source;
@ -171,6 +182,7 @@ class Notice
$this->conversation = $conversation; $this->conversation = $conversation;
return $this; return $this;
} }
public function getConversation(): ?int public function getConversation(): ?int
{ {
return $this->conversation; return $this->conversation;
@ -181,6 +193,7 @@ class Notice
$this->repeat_of = $repeat_of; $this->repeat_of = $repeat_of;
return $this; return $this;
} }
public function getRepeatOf(): ?int public function getRepeatOf(): ?int
{ {
return $this->repeat_of; return $this->repeat_of;
@ -191,6 +204,7 @@ class Notice
$this->object_type = $object_type; $this->object_type = $object_type;
return $this; return $this;
} }
public function getObjectType(): ?string public function getObjectType(): ?string
{ {
return $this->object_type; return $this->object_type;
@ -201,6 +215,7 @@ class Notice
$this->verb = $verb; $this->verb = $verb;
return $this; return $this;
} }
public function getVerb(): ?string public function getVerb(): ?string
{ {
return $this->verb; return $this->verb;
@ -211,6 +226,7 @@ class Notice
$this->scope = $scope; $this->scope = $scope;
return $this; return $this;
} }
public function getScope(): ?int public function getScope(): ?int
{ {
return $this->scope; return $this->scope;

View File

@ -51,6 +51,7 @@ class NoticeLocation
$this->notice_id = $notice_id; $this->notice_id = $notice_id;
return $this; return $this;
} }
public function getNoticeId(): int public function getNoticeId(): int
{ {
return $this->notice_id; return $this->notice_id;
@ -61,6 +62,7 @@ class NoticeLocation
$this->lat = $lat; $this->lat = $lat;
return $this; return $this;
} }
public function getLat(): ?float public function getLat(): ?float
{ {
return $this->lat; return $this->lat;
@ -71,6 +73,7 @@ class NoticeLocation
$this->lon = $lon; $this->lon = $lon;
return $this; return $this;
} }
public function getLon(): ?float public function getLon(): ?float
{ {
return $this->lon; return $this->lon;
@ -81,6 +84,7 @@ class NoticeLocation
$this->location_id = $location_id; $this->location_id = $location_id;
return $this; return $this;
} }
public function getLocationId(): ?int public function getLocationId(): ?int
{ {
return $this->location_id; return $this->location_id;
@ -91,6 +95,7 @@ class NoticeLocation
$this->location_ns = $location_ns; $this->location_ns = $location_ns;
return $this; return $this;
} }
public function getLocationNs(): ?int public function getLocationNs(): ?int
{ {
return $this->location_ns; return $this->location_ns;
@ -101,6 +106,7 @@ class NoticeLocation
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -53,6 +53,7 @@ class NoticePrefs
$this->notice_id = $notice_id; $this->notice_id = $notice_id;
return $this; return $this;
} }
public function getNoticeId(): int public function getNoticeId(): int
{ {
return $this->notice_id; return $this->notice_id;
@ -63,6 +64,7 @@ class NoticePrefs
$this->namespace = $namespace; $this->namespace = $namespace;
return $this; return $this;
} }
public function getNamespace(): string public function getNamespace(): string
{ {
return $this->namespace; return $this->namespace;
@ -73,6 +75,7 @@ class NoticePrefs
$this->topic = $topic; $this->topic = $topic;
return $this; return $this;
} }
public function getTopic(): string public function getTopic(): string
{ {
return $this->topic; return $this->topic;
@ -83,6 +86,7 @@ class NoticePrefs
$this->data = $data; $this->data = $data;
return $this; return $this;
} }
public function getData() public function getData()
{ {
return $this->data; return $this->data;
@ -93,6 +97,7 @@ class NoticePrefs
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -103,6 +108,7 @@ class NoticePrefs
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -51,6 +51,7 @@ class NoticeSource
$this->code = $code; $this->code = $code;
return $this; return $this;
} }
public function getCode(): string public function getCode(): string
{ {
return $this->code; return $this->code;
@ -61,6 +62,7 @@ class NoticeSource
$this->name = $name; $this->name = $name;
return $this; return $this;
} }
public function getName(): string public function getName(): string
{ {
return $this->name; return $this->name;
@ -71,6 +73,7 @@ class NoticeSource
$this->url = $url; $this->url = $url;
return $this; return $this;
} }
public function getUrl(): string public function getUrl(): string
{ {
return $this->url; return $this->url;
@ -81,6 +84,7 @@ class NoticeSource
$this->notice_id = $notice_id; $this->notice_id = $notice_id;
return $this; return $this;
} }
public function getNoticeId(): int public function getNoticeId(): int
{ {
return $this->notice_id; return $this->notice_id;
@ -91,6 +95,7 @@ class NoticeSource
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -101,6 +106,7 @@ class NoticeSource
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -48,6 +48,7 @@ class NoticeTag
$this->tag = $tag; $this->tag = $tag;
return $this; return $this;
} }
public function getTag(): string public function getTag(): string
{ {
return $this->tag; return $this->tag;
@ -58,6 +59,7 @@ class NoticeTag
$this->notice_id = $notice_id; $this->notice_id = $notice_id;
return $this; return $this;
} }
public function getNoticeId(): int public function getNoticeId(): int
{ {
return $this->notice_id; return $this->notice_id;
@ -68,6 +70,7 @@ class NoticeTag
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;

View File

@ -59,6 +59,7 @@ class OauthApplication
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -69,6 +70,7 @@ class OauthApplication
$this->owner = $owner; $this->owner = $owner;
return $this; return $this;
} }
public function getOwner(): int public function getOwner(): int
{ {
return $this->owner; return $this->owner;
@ -79,6 +81,7 @@ class OauthApplication
$this->consumer_key = $consumer_key; $this->consumer_key = $consumer_key;
return $this; return $this;
} }
public function getConsumerKey(): string public function getConsumerKey(): string
{ {
return $this->consumer_key; return $this->consumer_key;
@ -89,6 +92,7 @@ class OauthApplication
$this->name = $name; $this->name = $name;
return $this; return $this;
} }
public function getName(): string public function getName(): string
{ {
return $this->name; return $this->name;
@ -99,6 +103,7 @@ class OauthApplication
$this->description = $description; $this->description = $description;
return $this; return $this;
} }
public function getDescription(): ?string public function getDescription(): ?string
{ {
return $this->description; return $this->description;
@ -109,6 +114,7 @@ class OauthApplication
$this->icon = $icon; $this->icon = $icon;
return $this; return $this;
} }
public function getIcon(): string public function getIcon(): string
{ {
return $this->icon; return $this->icon;
@ -119,6 +125,7 @@ class OauthApplication
$this->source_url = $source_url; $this->source_url = $source_url;
return $this; return $this;
} }
public function getSourceUrl(): ?string public function getSourceUrl(): ?string
{ {
return $this->source_url; return $this->source_url;
@ -129,6 +136,7 @@ class OauthApplication
$this->organization = $organization; $this->organization = $organization;
return $this; return $this;
} }
public function getOrganization(): ?string public function getOrganization(): ?string
{ {
return $this->organization; return $this->organization;
@ -139,6 +147,7 @@ class OauthApplication
$this->homepage = $homepage; $this->homepage = $homepage;
return $this; return $this;
} }
public function getHomepage(): ?string public function getHomepage(): ?string
{ {
return $this->homepage; return $this->homepage;
@ -149,6 +158,7 @@ class OauthApplication
$this->callback_url = $callback_url; $this->callback_url = $callback_url;
return $this; return $this;
} }
public function getCallbackUrl(): ?string public function getCallbackUrl(): ?string
{ {
return $this->callback_url; return $this->callback_url;
@ -159,6 +169,7 @@ class OauthApplication
$this->type = $type; $this->type = $type;
return $this; return $this;
} }
public function getType(): ?int public function getType(): ?int
{ {
return $this->type; return $this->type;
@ -169,6 +180,7 @@ class OauthApplication
$this->access_type = $access_type; $this->access_type = $access_type;
return $this; return $this;
} }
public function getAccessType(): ?int public function getAccessType(): ?int
{ {
return $this->access_type; return $this->access_type;
@ -179,6 +191,7 @@ class OauthApplication
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -189,6 +202,7 @@ class OauthApplication
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -51,6 +51,7 @@ class OauthApplicationUser
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -61,6 +62,7 @@ class OauthApplicationUser
$this->application_id = $application_id; $this->application_id = $application_id;
return $this; return $this;
} }
public function getApplicationId(): int public function getApplicationId(): int
{ {
return $this->application_id; return $this->application_id;
@ -71,6 +73,7 @@ class OauthApplicationUser
$this->access_type = $access_type; $this->access_type = $access_type;
return $this; return $this;
} }
public function getAccessType(): ?int public function getAccessType(): ?int
{ {
return $this->access_type; return $this->access_type;
@ -81,6 +84,7 @@ class OauthApplicationUser
$this->token = $token; $this->token = $token;
return $this; return $this;
} }
public function getToken(): ?string public function getToken(): ?string
{ {
return $this->token; return $this->token;
@ -91,6 +95,7 @@ class OauthApplicationUser
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -101,6 +106,7 @@ class OauthApplicationUser
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -50,6 +50,7 @@ class OauthTokenAssociation
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -60,6 +61,7 @@ class OauthTokenAssociation
$this->application_id = $application_id; $this->application_id = $application_id;
return $this; return $this;
} }
public function getApplicationId(): int public function getApplicationId(): int
{ {
return $this->application_id; return $this->application_id;
@ -70,6 +72,7 @@ class OauthTokenAssociation
$this->token = $token; $this->token = $token;
return $this; return $this;
} }
public function getToken(): string public function getToken(): string
{ {
return $this->token; return $this->token;
@ -80,6 +83,7 @@ class OauthTokenAssociation
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -90,6 +94,7 @@ class OauthTokenAssociation
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -51,6 +51,7 @@ class OldSchoolPrefs
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): int public function getUserId(): int
{ {
return $this->user_id; return $this->user_id;
@ -61,6 +62,7 @@ class OldSchoolPrefs
$this->stream_mode_only = $stream_mode_only; $this->stream_mode_only = $stream_mode_only;
return $this; return $this;
} }
public function getStreamModeOnly(): ?bool public function getStreamModeOnly(): ?bool
{ {
return $this->stream_mode_only; return $this->stream_mode_only;
@ -71,6 +73,7 @@ class OldSchoolPrefs
$this->conversation_tree = $conversation_tree; $this->conversation_tree = $conversation_tree;
return $this; return $this;
} }
public function getConversationTree(): ?bool public function getConversationTree(): ?bool
{ {
return $this->conversation_tree; return $this->conversation_tree;
@ -81,6 +84,7 @@ class OldSchoolPrefs
$this->stream_nicknames = $stream_nicknames; $this->stream_nicknames = $stream_nicknames;
return $this; return $this;
} }
public function getStreamNicknames(): ?bool public function getStreamNicknames(): ?bool
{ {
return $this->stream_nicknames; return $this->stream_nicknames;
@ -91,6 +95,7 @@ class OldSchoolPrefs
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -101,6 +106,7 @@ class OldSchoolPrefs
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -58,6 +58,7 @@ class Profile
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -68,6 +69,7 @@ class Profile
$this->nickname = $nickname; $this->nickname = $nickname;
return $this; return $this;
} }
public function getNickname(): string public function getNickname(): string
{ {
return $this->nickname; return $this->nickname;
@ -78,6 +80,7 @@ class Profile
$this->fullname = $fullname; $this->fullname = $fullname;
return $this; return $this;
} }
public function getFullname(): ?string public function getFullname(): ?string
{ {
return $this->fullname; return $this->fullname;
@ -88,6 +91,7 @@ class Profile
$this->profileurl = $profileurl; $this->profileurl = $profileurl;
return $this; return $this;
} }
public function getProfileurl(): ?string public function getProfileurl(): ?string
{ {
return $this->profileurl; return $this->profileurl;
@ -98,6 +102,7 @@ class Profile
$this->homepage = $homepage; $this->homepage = $homepage;
return $this; return $this;
} }
public function getHomepage(): ?string public function getHomepage(): ?string
{ {
return $this->homepage; return $this->homepage;
@ -108,6 +113,7 @@ class Profile
$this->bio = $bio; $this->bio = $bio;
return $this; return $this;
} }
public function getBio(): ?string public function getBio(): ?string
{ {
return $this->bio; return $this->bio;
@ -118,6 +124,7 @@ class Profile
$this->location = $location; $this->location = $location;
return $this; return $this;
} }
public function getLocation(): ?string public function getLocation(): ?string
{ {
return $this->location; return $this->location;
@ -128,6 +135,7 @@ class Profile
$this->lat = $lat; $this->lat = $lat;
return $this; return $this;
} }
public function getLat(): ?float public function getLat(): ?float
{ {
return $this->lat; return $this->lat;
@ -138,6 +146,7 @@ class Profile
$this->lon = $lon; $this->lon = $lon;
return $this; return $this;
} }
public function getLon(): ?float public function getLon(): ?float
{ {
return $this->lon; return $this->lon;
@ -148,6 +157,7 @@ class Profile
$this->location_id = $location_id; $this->location_id = $location_id;
return $this; return $this;
} }
public function getLocationId(): ?int public function getLocationId(): ?int
{ {
return $this->location_id; return $this->location_id;
@ -158,6 +168,7 @@ class Profile
$this->location_ns = $location_ns; $this->location_ns = $location_ns;
return $this; return $this;
} }
public function getLocationNs(): ?int public function getLocationNs(): ?int
{ {
return $this->location_ns; return $this->location_ns;
@ -168,6 +179,7 @@ class Profile
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -178,6 +190,7 @@ class Profile
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -48,6 +48,7 @@ class ProfileBlock
$this->blocker = $blocker; $this->blocker = $blocker;
return $this; return $this;
} }
public function getBlocker(): int public function getBlocker(): int
{ {
return $this->blocker; return $this->blocker;
@ -58,6 +59,7 @@ class ProfileBlock
$this->blocked = $blocked; $this->blocked = $blocked;
return $this; return $this;
} }
public function getBlocked(): int public function getBlocked(): int
{ {
return $this->blocked; return $this->blocked;
@ -68,6 +70,7 @@ class ProfileBlock
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -56,6 +56,7 @@ class ProfileList
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -66,6 +67,7 @@ class ProfileList
$this->tagger = $tagger; $this->tagger = $tagger;
return $this; return $this;
} }
public function getTagger(): int public function getTagger(): int
{ {
return $this->tagger; return $this->tagger;
@ -76,6 +78,7 @@ class ProfileList
$this->tag = $tag; $this->tag = $tag;
return $this; return $this;
} }
public function getTag(): string public function getTag(): string
{ {
return $this->tag; return $this->tag;
@ -86,6 +89,7 @@ class ProfileList
$this->description = $description; $this->description = $description;
return $this; return $this;
} }
public function getDescription(): ?string public function getDescription(): ?string
{ {
return $this->description; return $this->description;
@ -96,6 +100,7 @@ class ProfileList
$this->private = $private; $this->private = $private;
return $this; return $this;
} }
public function getPrivate(): ?bool public function getPrivate(): ?bool
{ {
return $this->private; return $this->private;
@ -106,6 +111,7 @@ class ProfileList
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -116,6 +122,7 @@ class ProfileList
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;
@ -126,6 +133,7 @@ class ProfileList
$this->uri = $uri; $this->uri = $uri;
return $this; return $this;
} }
public function getUri(): ?string public function getUri(): ?string
{ {
return $this->uri; return $this->uri;
@ -136,6 +144,7 @@ class ProfileList
$this->mainpage = $mainpage; $this->mainpage = $mainpage;
return $this; return $this;
} }
public function getMainpage(): ?string public function getMainpage(): ?string
{ {
return $this->mainpage; return $this->mainpage;
@ -146,6 +155,7 @@ class ProfileList
$this->tagged_count = $tagged_count; $this->tagged_count = $tagged_count;
return $this; return $this;
} }
public function getTaggedCount(): ?int public function getTaggedCount(): ?int
{ {
return $this->tagged_count; return $this->tagged_count;
@ -156,6 +166,7 @@ class ProfileList
$this->subscriber_count = $subscriber_count; $this->subscriber_count = $subscriber_count;
return $this; return $this;
} }
public function getSubscriberCount(): ?int public function getSubscriberCount(): ?int
{ {
return $this->subscriber_count; return $this->subscriber_count;

View File

@ -51,6 +51,7 @@ class ProfilePrefs
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -61,6 +62,7 @@ class ProfilePrefs
$this->namespace = $namespace; $this->namespace = $namespace;
return $this; return $this;
} }
public function getNamespace(): string public function getNamespace(): string
{ {
return $this->namespace; return $this->namespace;
@ -71,6 +73,7 @@ class ProfilePrefs
$this->topic = $topic; $this->topic = $topic;
return $this; return $this;
} }
public function getTopic(): string public function getTopic(): string
{ {
return $this->topic; return $this->topic;
@ -81,6 +84,7 @@ class ProfilePrefs
$this->data = $data; $this->data = $data;
return $this; return $this;
} }
public function getData() public function getData()
{ {
return $this->data; return $this->data;
@ -91,6 +95,7 @@ class ProfilePrefs
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -101,6 +106,7 @@ class ProfilePrefs
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -48,6 +48,7 @@ class ProfileRole
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -58,6 +59,7 @@ class ProfileRole
$this->role = $role; $this->role = $role;
return $this; return $this;
} }
public function getRole(): string public function getRole(): string
{ {
return $this->role; return $this->role;
@ -68,6 +70,7 @@ class ProfileRole
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;

View File

@ -49,6 +49,7 @@ class ProfileTag
$this->tagger = $tagger; $this->tagger = $tagger;
return $this; return $this;
} }
public function getTagger(): int public function getTagger(): int
{ {
return $this->tagger; return $this->tagger;
@ -59,6 +60,7 @@ class ProfileTag
$this->tagged = $tagged; $this->tagged = $tagged;
return $this; return $this;
} }
public function getTagged(): int public function getTagged(): int
{ {
return $this->tagged; return $this->tagged;
@ -69,6 +71,7 @@ class ProfileTag
$this->tag = $tag; $this->tag = $tag;
return $this; return $this;
} }
public function getTag(): string public function getTag(): string
{ {
return $this->tag; return $this->tag;
@ -79,6 +82,7 @@ class ProfileTag
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -49,6 +49,7 @@ class ProfileTagSubscription
$this->profile_tag_id = $profile_tag_id; $this->profile_tag_id = $profile_tag_id;
return $this; return $this;
} }
public function getProfileTagId(): int public function getProfileTagId(): int
{ {
return $this->profile_tag_id; return $this->profile_tag_id;
@ -59,6 +60,7 @@ class ProfileTagSubscription
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -69,6 +71,7 @@ class ProfileTagSubscription
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -79,6 +82,7 @@ class ProfileTagSubscription
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -50,6 +50,7 @@ class QueueItem
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -60,6 +61,7 @@ class QueueItem
$this->frame = $frame; $this->frame = $frame;
return $this; return $this;
} }
public function getFrame() public function getFrame()
{ {
return $this->frame; return $this->frame;
@ -70,6 +72,7 @@ class QueueItem
$this->transport = $transport; $this->transport = $transport;
return $this; return $this;
} }
public function getTransport(): string public function getTransport(): string
{ {
return $this->transport; return $this->transport;
@ -80,6 +83,7 @@ class QueueItem
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -90,6 +94,7 @@ class QueueItem
$this->claimed = $claimed; $this->claimed = $claimed;
return $this; return $this;
} }
public function getClaimed(): ?DateTimeInterface public function getClaimed(): ?DateTimeInterface
{ {
return $this->claimed; return $this->claimed;

View File

@ -48,6 +48,7 @@ class RelatedGroup
$this->group_id = $group_id; $this->group_id = $group_id;
return $this; return $this;
} }
public function getGroupId(): int public function getGroupId(): int
{ {
return $this->group_id; return $this->group_id;
@ -58,6 +59,7 @@ class RelatedGroup
$this->related_group_id = $related_group_id; $this->related_group_id = $related_group_id;
return $this; return $this;
} }
public function getRelatedGroupId(): int public function getRelatedGroupId(): int
{ {
return $this->related_group_id; return $this->related_group_id;
@ -68,6 +70,7 @@ class RelatedGroup
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;

View File

@ -48,6 +48,7 @@ class RememberMe
$this->code = $code; $this->code = $code;
return $this; return $this;
} }
public function getCode(): string public function getCode(): string
{ {
return $this->code; return $this->code;
@ -58,6 +59,7 @@ class RememberMe
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): int public function getUserId(): int
{ {
return $this->user_id; return $this->user_id;
@ -68,6 +70,7 @@ class RememberMe
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -49,6 +49,7 @@ class Reply
$this->notice_id = $notice_id; $this->notice_id = $notice_id;
return $this; return $this;
} }
public function getNoticeId(): int public function getNoticeId(): int
{ {
return $this->notice_id; return $this->notice_id;
@ -59,6 +60,7 @@ class Reply
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -69,6 +71,7 @@ class Reply
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;
@ -79,6 +82,7 @@ class Reply
$this->replied_id = $replied_id; $this->replied_id = $replied_id;
return $this; return $this;
} }
public function getRepliedId(): ?int public function getRepliedId(): ?int
{ {
return $this->replied_id; return $this->replied_id;

View File

@ -48,6 +48,7 @@ class SchemaVersion
$this->table_name = $table_name; $this->table_name = $table_name;
return $this; return $this;
} }
public function getTableName(): string public function getTableName(): string
{ {
return $this->table_name; return $this->table_name;
@ -58,6 +59,7 @@ class SchemaVersion
$this->checksum = $checksum; $this->checksum = $checksum;
return $this; return $this;
} }
public function getChecksum(): string public function getChecksum(): string
{ {
return $this->checksum; return $this->checksum;
@ -68,6 +70,7 @@ class SchemaVersion
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -51,6 +51,7 @@ class Session
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): string public function getId(): string
{ {
return $this->id; return $this->id;
@ -61,6 +62,7 @@ class Session
$this->session_data = $session_data; $this->session_data = $session_data;
return $this; return $this;
} }
public function getSessionData(): ?string public function getSessionData(): ?string
{ {
return $this->session_data; return $this->session_data;
@ -71,6 +73,7 @@ class Session
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -81,6 +84,7 @@ class Session
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -50,6 +50,7 @@ class SmsCarrier
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -60,6 +61,7 @@ class SmsCarrier
$this->name = $name; $this->name = $name;
return $this; return $this;
} }
public function getName(): ?string public function getName(): ?string
{ {
return $this->name; return $this->name;
@ -70,6 +72,7 @@ class SmsCarrier
$this->email_pattern = $email_pattern; $this->email_pattern = $email_pattern;
return $this; return $this;
} }
public function getEmailPattern(): string public function getEmailPattern(): string
{ {
return $this->email_pattern; return $this->email_pattern;
@ -80,6 +83,7 @@ class SmsCarrier
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -90,6 +94,7 @@ class SmsCarrier
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -55,6 +55,7 @@ class Subscription
$this->subscriber = $subscriber; $this->subscriber = $subscriber;
return $this; return $this;
} }
public function getSubscriber(): int public function getSubscriber(): int
{ {
return $this->subscriber; return $this->subscriber;
@ -65,6 +66,7 @@ class Subscription
$this->subscribed = $subscribed; $this->subscribed = $subscribed;
return $this; return $this;
} }
public function getSubscribed(): int public function getSubscribed(): int
{ {
return $this->subscribed; return $this->subscribed;
@ -75,6 +77,7 @@ class Subscription
$this->jabber = $jabber; $this->jabber = $jabber;
return $this; return $this;
} }
public function getJabber(): ?bool public function getJabber(): ?bool
{ {
return $this->jabber; return $this->jabber;
@ -85,6 +88,7 @@ class Subscription
$this->sms = $sms; $this->sms = $sms;
return $this; return $this;
} }
public function getSms(): ?bool public function getSms(): ?bool
{ {
return $this->sms; return $this->sms;
@ -95,6 +99,7 @@ class Subscription
$this->token = $token; $this->token = $token;
return $this; return $this;
} }
public function getToken(): ?string public function getToken(): ?string
{ {
return $this->token; return $this->token;
@ -105,6 +110,7 @@ class Subscription
$this->secret = $secret; $this->secret = $secret;
return $this; return $this;
} }
public function getSecret(): ?string public function getSecret(): ?string
{ {
return $this->secret; return $this->secret;
@ -115,6 +121,7 @@ class Subscription
$this->uri = $uri; $this->uri = $uri;
return $this; return $this;
} }
public function getUri(): ?string public function getUri(): ?string
{ {
return $this->uri; return $this->uri;
@ -125,6 +132,7 @@ class Subscription
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -135,6 +143,7 @@ class Subscription
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -48,6 +48,7 @@ class SubscriptionQueue
$this->subscriber = $subscriber; $this->subscriber = $subscriber;
return $this; return $this;
} }
public function getSubscriber(): int public function getSubscriber(): int
{ {
return $this->subscriber; return $this->subscriber;
@ -58,6 +59,7 @@ class SubscriptionQueue
$this->subscribed = $subscribed; $this->subscribed = $subscribed;
return $this; return $this;
} }
public function getSubscribed(): int public function getSubscribed(): int
{ {
return $this->subscribed; return $this->subscribed;
@ -68,6 +70,7 @@ class SubscriptionQueue
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;

View File

@ -54,6 +54,7 @@ class Token
$this->consumer_key = $consumer_key; $this->consumer_key = $consumer_key;
return $this; return $this;
} }
public function getConsumerKey(): string public function getConsumerKey(): string
{ {
return $this->consumer_key; return $this->consumer_key;
@ -64,6 +65,7 @@ class Token
$this->tok = $tok; $this->tok = $tok;
return $this; return $this;
} }
public function getTok(): string public function getTok(): string
{ {
return $this->tok; return $this->tok;
@ -74,6 +76,7 @@ class Token
$this->secret = $secret; $this->secret = $secret;
return $this; return $this;
} }
public function getSecret(): string public function getSecret(): string
{ {
return $this->secret; return $this->secret;
@ -84,6 +87,7 @@ class Token
$this->type = $type; $this->type = $type;
return $this; return $this;
} }
public function getType(): int public function getType(): int
{ {
return $this->type; return $this->type;
@ -94,6 +98,7 @@ class Token
$this->state = $state; $this->state = $state;
return $this; return $this;
} }
public function getState(): ?int public function getState(): ?int
{ {
return $this->state; return $this->state;
@ -104,6 +109,7 @@ class Token
$this->verifier = $verifier; $this->verifier = $verifier;
return $this; return $this;
} }
public function getVerifier(): ?string public function getVerifier(): ?string
{ {
return $this->verifier; return $this->verifier;
@ -114,6 +120,7 @@ class Token
$this->verified_callback = $verified_callback; $this->verified_callback = $verified_callback;
return $this; return $this;
} }
public function getVerifiedCallback(): ?string public function getVerifiedCallback(): ?string
{ {
return $this->verified_callback; return $this->verified_callback;
@ -124,6 +131,7 @@ class Token
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -134,6 +142,7 @@ class Token
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -47,6 +47,7 @@ class UnavailableStatusNetwork
$this->nickname = $nickname; $this->nickname = $nickname;
return $this; return $this;
} }
public function getNickname(): string public function getNickname(): string
{ {
return $this->nickname; return $this->nickname;
@ -57,6 +58,7 @@ class UnavailableStatusNetwork
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;

View File

@ -70,6 +70,7 @@ class User
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -80,6 +81,7 @@ class User
$this->nickname = $nickname; $this->nickname = $nickname;
return $this; return $this;
} }
public function getNickname(): ?string public function getNickname(): ?string
{ {
return $this->nickname; return $this->nickname;
@ -90,6 +92,7 @@ class User
$this->password = $password; $this->password = $password;
return $this; return $this;
} }
public function getPassword(): ?string public function getPassword(): ?string
{ {
return $this->password; return $this->password;
@ -100,6 +103,7 @@ class User
$this->email = $email; $this->email = $email;
return $this; return $this;
} }
public function getEmail(): ?string public function getEmail(): ?string
{ {
return $this->email; return $this->email;
@ -110,6 +114,7 @@ class User
$this->incomingemail = $incomingemail; $this->incomingemail = $incomingemail;
return $this; return $this;
} }
public function getIncomingemail(): ?string public function getIncomingemail(): ?string
{ {
return $this->incomingemail; return $this->incomingemail;
@ -120,6 +125,7 @@ class User
$this->emailnotifysub = $emailnotifysub; $this->emailnotifysub = $emailnotifysub;
return $this; return $this;
} }
public function getEmailnotifysub(): ?bool public function getEmailnotifysub(): ?bool
{ {
return $this->emailnotifysub; return $this->emailnotifysub;
@ -130,6 +136,7 @@ class User
$this->emailnotifyfav = $emailnotifyfav; $this->emailnotifyfav = $emailnotifyfav;
return $this; return $this;
} }
public function getEmailnotifyfav(): ?int public function getEmailnotifyfav(): ?int
{ {
return $this->emailnotifyfav; return $this->emailnotifyfav;
@ -140,6 +147,7 @@ class User
$this->emailnotifynudge = $emailnotifynudge; $this->emailnotifynudge = $emailnotifynudge;
return $this; return $this;
} }
public function getEmailnotifynudge(): ?bool public function getEmailnotifynudge(): ?bool
{ {
return $this->emailnotifynudge; return $this->emailnotifynudge;
@ -150,6 +158,7 @@ class User
$this->emailnotifymsg = $emailnotifymsg; $this->emailnotifymsg = $emailnotifymsg;
return $this; return $this;
} }
public function getEmailnotifymsg(): ?bool public function getEmailnotifymsg(): ?bool
{ {
return $this->emailnotifymsg; return $this->emailnotifymsg;
@ -160,6 +169,7 @@ class User
$this->emailnotifyattn = $emailnotifyattn; $this->emailnotifyattn = $emailnotifyattn;
return $this; return $this;
} }
public function getEmailnotifyattn(): ?bool public function getEmailnotifyattn(): ?bool
{ {
return $this->emailnotifyattn; return $this->emailnotifyattn;
@ -170,6 +180,7 @@ class User
$this->language = $language; $this->language = $language;
return $this; return $this;
} }
public function getLanguage(): ?string public function getLanguage(): ?string
{ {
return $this->language; return $this->language;
@ -180,6 +191,7 @@ class User
$this->timezone = $timezone; $this->timezone = $timezone;
return $this; return $this;
} }
public function getTimezone(): ?string public function getTimezone(): ?string
{ {
return $this->timezone; return $this->timezone;
@ -190,6 +202,7 @@ class User
$this->emailpost = $emailpost; $this->emailpost = $emailpost;
return $this; return $this;
} }
public function getEmailpost(): ?bool public function getEmailpost(): ?bool
{ {
return $this->emailpost; return $this->emailpost;
@ -200,6 +213,7 @@ class User
$this->sms = $sms; $this->sms = $sms;
return $this; return $this;
} }
public function getSms(): ?string public function getSms(): ?string
{ {
return $this->sms; return $this->sms;
@ -210,6 +224,7 @@ class User
$this->carrier = $carrier; $this->carrier = $carrier;
return $this; return $this;
} }
public function getCarrier(): ?int public function getCarrier(): ?int
{ {
return $this->carrier; return $this->carrier;
@ -220,6 +235,7 @@ class User
$this->smsnotify = $smsnotify; $this->smsnotify = $smsnotify;
return $this; return $this;
} }
public function getSmsnotify(): ?bool public function getSmsnotify(): ?bool
{ {
return $this->smsnotify; return $this->smsnotify;
@ -230,6 +246,7 @@ class User
$this->smsreplies = $smsreplies; $this->smsreplies = $smsreplies;
return $this; return $this;
} }
public function getSmsreplies(): ?bool public function getSmsreplies(): ?bool
{ {
return $this->smsreplies; return $this->smsreplies;
@ -240,6 +257,7 @@ class User
$this->smsemail = $smsemail; $this->smsemail = $smsemail;
return $this; return $this;
} }
public function getSmsemail(): ?string public function getSmsemail(): ?string
{ {
return $this->smsemail; return $this->smsemail;
@ -250,6 +268,7 @@ class User
$this->uri = $uri; $this->uri = $uri;
return $this; return $this;
} }
public function getUri(): ?string public function getUri(): ?string
{ {
return $this->uri; return $this->uri;
@ -260,6 +279,7 @@ class User
$this->autosubscribe = $autosubscribe; $this->autosubscribe = $autosubscribe;
return $this; return $this;
} }
public function getAutosubscribe(): ?bool public function getAutosubscribe(): ?bool
{ {
return $this->autosubscribe; return $this->autosubscribe;
@ -270,6 +290,7 @@ class User
$this->subscribe_policy = $subscribe_policy; $this->subscribe_policy = $subscribe_policy;
return $this; return $this;
} }
public function getSubscribePolicy(): ?int public function getSubscribePolicy(): ?int
{ {
return $this->subscribe_policy; return $this->subscribe_policy;
@ -280,6 +301,7 @@ class User
$this->urlshorteningservice = $urlshorteningservice; $this->urlshorteningservice = $urlshorteningservice;
return $this; return $this;
} }
public function getUrlshorteningservice(): ?string public function getUrlshorteningservice(): ?string
{ {
return $this->urlshorteningservice; return $this->urlshorteningservice;
@ -290,6 +312,7 @@ class User
$this->private_stream = $private_stream; $this->private_stream = $private_stream;
return $this; return $this;
} }
public function getPrivateStream(): ?bool public function getPrivateStream(): ?bool
{ {
return $this->private_stream; return $this->private_stream;
@ -300,6 +323,7 @@ class User
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -310,6 +334,7 @@ class User
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -62,6 +62,7 @@ class UserGroup
$this->id = $id; $this->id = $id;
return $this; return $this;
} }
public function getId(): int public function getId(): int
{ {
return $this->id; return $this->id;
@ -72,6 +73,7 @@ class UserGroup
$this->profile_id = $profile_id; $this->profile_id = $profile_id;
return $this; return $this;
} }
public function getProfileId(): int public function getProfileId(): int
{ {
return $this->profile_id; return $this->profile_id;
@ -82,6 +84,7 @@ class UserGroup
$this->nickname = $nickname; $this->nickname = $nickname;
return $this; return $this;
} }
public function getNickname(): ?string public function getNickname(): ?string
{ {
return $this->nickname; return $this->nickname;
@ -92,6 +95,7 @@ class UserGroup
$this->fullname = $fullname; $this->fullname = $fullname;
return $this; return $this;
} }
public function getFullname(): ?string public function getFullname(): ?string
{ {
return $this->fullname; return $this->fullname;
@ -102,6 +106,7 @@ class UserGroup
$this->homepage = $homepage; $this->homepage = $homepage;
return $this; return $this;
} }
public function getHomepage(): ?string public function getHomepage(): ?string
{ {
return $this->homepage; return $this->homepage;
@ -112,6 +117,7 @@ class UserGroup
$this->description = $description; $this->description = $description;
return $this; return $this;
} }
public function getDescription(): ?string public function getDescription(): ?string
{ {
return $this->description; return $this->description;
@ -122,6 +128,7 @@ class UserGroup
$this->location = $location; $this->location = $location;
return $this; return $this;
} }
public function getLocation(): ?string public function getLocation(): ?string
{ {
return $this->location; return $this->location;
@ -132,6 +139,7 @@ class UserGroup
$this->original_logo = $original_logo; $this->original_logo = $original_logo;
return $this; return $this;
} }
public function getOriginalLogo(): ?string public function getOriginalLogo(): ?string
{ {
return $this->original_logo; return $this->original_logo;
@ -142,6 +150,7 @@ class UserGroup
$this->homepage_logo = $homepage_logo; $this->homepage_logo = $homepage_logo;
return $this; return $this;
} }
public function getHomepageLogo(): ?string public function getHomepageLogo(): ?string
{ {
return $this->homepage_logo; return $this->homepage_logo;
@ -152,6 +161,7 @@ class UserGroup
$this->stream_logo = $stream_logo; $this->stream_logo = $stream_logo;
return $this; return $this;
} }
public function getStreamLogo(): ?string public function getStreamLogo(): ?string
{ {
return $this->stream_logo; return $this->stream_logo;
@ -162,6 +172,7 @@ class UserGroup
$this->mini_logo = $mini_logo; $this->mini_logo = $mini_logo;
return $this; return $this;
} }
public function getMiniLogo(): ?string public function getMiniLogo(): ?string
{ {
return $this->mini_logo; return $this->mini_logo;
@ -172,6 +183,7 @@ class UserGroup
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -182,6 +194,7 @@ class UserGroup
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;
@ -192,6 +205,7 @@ class UserGroup
$this->uri = $uri; $this->uri = $uri;
return $this; return $this;
} }
public function getUri(): ?string public function getUri(): ?string
{ {
return $this->uri; return $this->uri;
@ -202,6 +216,7 @@ class UserGroup
$this->mainpage = $mainpage; $this->mainpage = $mainpage;
return $this; return $this;
} }
public function getMainpage(): ?string public function getMainpage(): ?string
{ {
return $this->mainpage; return $this->mainpage;
@ -212,6 +227,7 @@ class UserGroup
$this->join_policy = $join_policy; $this->join_policy = $join_policy;
return $this; return $this;
} }
public function getJoinPolicy(): ?int public function getJoinPolicy(): ?int
{ {
return $this->join_policy; return $this->join_policy;
@ -222,6 +238,7 @@ class UserGroup
$this->force_scope = $force_scope; $this->force_scope = $force_scope;
return $this; return $this;
} }
public function getForceScope(): ?int public function getForceScope(): ?int
{ {
return $this->force_scope; return $this->force_scope;

View File

@ -51,6 +51,7 @@ class UserImPrefs
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): int public function getUserId(): int
{ {
return $this->user_id; return $this->user_id;
@ -61,6 +62,7 @@ class UserImPrefs
$this->screenname = $screenname; $this->screenname = $screenname;
return $this; return $this;
} }
public function getScreenname(): string public function getScreenname(): string
{ {
return $this->screenname; return $this->screenname;
@ -71,6 +73,7 @@ class UserImPrefs
$this->transport = $transport; $this->transport = $transport;
return $this; return $this;
} }
public function getTransport(): string public function getTransport(): string
{ {
return $this->transport; return $this->transport;
@ -81,6 +84,7 @@ class UserImPrefs
$this->notify = $notify; $this->notify = $notify;
return $this; return $this;
} }
public function getNotify(): bool public function getNotify(): bool
{ {
return $this->notify; return $this->notify;
@ -91,6 +95,7 @@ class UserImPrefs
$this->replies = $replies; $this->replies = $replies;
return $this; return $this;
} }
public function getReplies(): bool public function getReplies(): bool
{ {
return $this->replies; return $this->replies;
@ -101,6 +106,7 @@ class UserImPrefs
$this->updatefrompresence = $updatefrompresence; $this->updatefrompresence = $updatefrompresence;
return $this; return $this;
} }
public function getUpdatefrompresence(): bool public function getUpdatefrompresence(): bool
{ {
return $this->updatefrompresence; return $this->updatefrompresence;
@ -111,6 +117,7 @@ class UserImPrefs
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -121,6 +128,7 @@ class UserImPrefs
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -47,6 +47,7 @@ class UserLocationPrefs
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): int public function getUserId(): int
{ {
return $this->user_id; return $this->user_id;
@ -57,6 +58,7 @@ class UserLocationPrefs
$this->share_location = $share_location; $this->share_location = $share_location;
return $this; return $this;
} }
public function getShareLocation(): ?bool public function getShareLocation(): ?bool
{ {
return $this->share_location; return $this->share_location;
@ -67,6 +69,7 @@ class UserLocationPrefs
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -77,6 +80,7 @@ class UserLocationPrefs
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -51,6 +51,7 @@ class UserUrlshortenerPrefs
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): int public function getUserId(): int
{ {
return $this->user_id; return $this->user_id;
@ -61,6 +62,7 @@ class UserUrlshortenerPrefs
$this->urlshorteningservice = $urlshorteningservice; $this->urlshorteningservice = $urlshorteningservice;
return $this; return $this;
} }
public function getUrlshorteningservice(): ?string public function getUrlshorteningservice(): ?string
{ {
return $this->urlshorteningservice; return $this->urlshorteningservice;
@ -71,6 +73,7 @@ class UserUrlshortenerPrefs
$this->maxurllength = $maxurllength; $this->maxurllength = $maxurllength;
return $this; return $this;
} }
public function getMaxurllength(): int public function getMaxurllength(): int
{ {
return $this->maxurllength; return $this->maxurllength;
@ -81,6 +84,7 @@ class UserUrlshortenerPrefs
$this->maxnoticelength = $maxnoticelength; $this->maxnoticelength = $maxnoticelength;
return $this; return $this;
} }
public function getMaxnoticelength(): int public function getMaxnoticelength(): int
{ {
return $this->maxnoticelength; return $this->maxnoticelength;
@ -91,6 +95,7 @@ class UserUrlshortenerPrefs
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -101,6 +106,7 @@ class UserUrlshortenerPrefs
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -50,6 +50,7 @@ class UserUsername
$this->provider_name = $provider_name; $this->provider_name = $provider_name;
return $this; return $this;
} }
public function getProviderName(): string public function getProviderName(): string
{ {
return $this->provider_name; return $this->provider_name;
@ -60,6 +61,7 @@ class UserUsername
$this->username = $username; $this->username = $username;
return $this; return $this;
} }
public function getUsername(): string public function getUsername(): string
{ {
return $this->username; return $this->username;
@ -70,6 +72,7 @@ class UserUsername
$this->user_id = $user_id; $this->user_id = $user_id;
return $this; return $this;
} }
public function getUserId(): int public function getUserId(): int
{ {
return $this->user_id; return $this->user_id;
@ -80,6 +83,7 @@ class UserUsername
$this->created = $created; $this->created = $created;
return $this; return $this;
} }
public function getCreated(): DateTimeInterface public function getCreated(): DateTimeInterface
{ {
return $this->created; return $this->created;
@ -90,6 +94,7 @@ class UserUsername
$this->modified = $modified; $this->modified = $modified;
return $this; return $this;
} }
public function getModified(): DateTimeInterface public function getModified(): DateTimeInterface
{ {
return $this->modified; return $this->modified;

View File

@ -30,10 +30,10 @@
namespace App\Util; namespace App\Util;
use const DIRECTORY_SEPARATOR;
use Functional as F; use Functional as F;
use InvalidArgumentException; use InvalidArgumentException;
use Symfony\Component\Config\Definition\Exception\Exception; use Symfony\Component\Config\Definition\Exception\Exception;
use const DIRECTORY_SEPARATOR;
abstract class Common abstract class Common
{ {
@ -42,6 +42,7 @@ abstract class Common
* *
* @param string $section * @param string $section
* @param string $field * @param string $field
*
* @return mixed * @return mixed
*/ */
public static function config(string $section, string $field) public static function config(string $section, string $field)
@ -52,7 +53,9 @@ abstract class Common
/** /**
* Normalize path by converting \ to / * Normalize path by converting \ to /
*
* @param string $path * @param string $path
*
* @return string * @return string
*/ */
public static function normalizePath(string $path): string public static function normalizePath(string $path): string
@ -65,8 +68,10 @@ abstract class Common
/** /**
* Get plugin name from it's path, or null if not a plugin * Get plugin name from it's path, or null if not a plugin
*
* @param string $path * @param string $path
* @return string|null *
* @return null|string
*/ */
public static function pluginFromPath(string $path): ?string public static function pluginFromPath(string $path): ?string
{ {
@ -90,7 +95,8 @@ abstract class Common
* Check whether $haystack starts with $needle * Check whether $haystack starts with $needle
* *
* @param array|string $haystack if array, check that all strings start with $needle * @param array|string $haystack if array, check that all strings start with $needle
* @param string $needle * @param string $needle
*
* @return bool * @return bool
*/ */
public static function startsWith($haystack, string $needle): bool public static function startsWith($haystack, string $needle): bool
@ -100,16 +106,17 @@ abstract class Common
return substr($haystack, 0, $length) === $needle; return substr($haystack, 0, $length) === $needle;
} }
return F\every($haystack, return F\every($haystack,
function ($haystack) use ($needle) { function ($haystack) use ($needle) {
return self::startsWith($haystack, $needle); return self::startsWith($haystack, $needle);
}); });
} }
/** /**
* Check whether $haystack ends with $needle * Check whether $haystack ends with $needle
* *
* @param array|string $haystack if array, check that all strings end with $needle * @param array|string $haystack if array, check that all strings end with $needle
* @param string $needle * @param string $needle
*
* @return bool * @return bool
*/ */
public static function endsWith($haystack, string $needle) public static function endsWith($haystack, string $needle)
@ -122,16 +129,18 @@ abstract class Common
return substr($haystack, -$length) === $needle; return substr($haystack, -$length) === $needle;
} }
return F\every($haystack, return F\every($haystack,
function ($haystack) use ($needle) { function ($haystack) use ($needle) {
return self::endsWith($haystack, $needle); return self::endsWith($haystack, $needle);
}); });
} }
/** /**
* Call $func with only abs($count) arguments, taken either from the * Call $func with only abs($count) arguments, taken either from the
* left or right depending on the sign * left or right depending on the sign
*
* @param callable $func * @param callable $func
* @param int $count * @param int $count
*
* @return callable * @return callable
*/ */
public static function arity(callable $func, int $count): callable public static function arity(callable $func, int $count): callable
@ -146,6 +155,7 @@ abstract class Common
/** /**
* @param string $str * @param string $str
*
* @return string * @return string
*/ */
public static function camelCaseToSnakeCase(string $str): string public static function camelCaseToSnakeCase(string $str): string
@ -155,6 +165,7 @@ abstract class Common
/** /**
* @param string $str * @param string $str
*
* @return string * @return string
*/ */
public static function snakeCaseToCamelCase(string $str): string public static function snakeCaseToCamelCase(string $str): string
@ -166,8 +177,9 @@ abstract class Common
* Indent $in, a string or array, $level levels * Indent $in, a string or array, $level levels
* *
* @param array|string $in * @param array|string $in
* @param int $level * @param int $level
* @param int $count * @param int $count
*
* @return string * @return string
*/ */
public static function indent($in, int $level = 1, int $count = 2): string public static function indent($in, int $level = 1, int $count = 2): string
@ -177,11 +189,13 @@ abstract class Common
} elseif (is_array($in)) { } elseif (is_array($in)) {
$indent = str_repeat(' ', $count * $level); $indent = str_repeat(' ', $count * $level);
return implode("\n", F\map(F\select($in, return implode("\n", F\map(F\select($in,
self::arity(function ($s) { return $s != ''; }, 1)), self::arity(function ($s) {
function ($val) use ($indent) { return $s != '';
return F\concat($indent . $val); }, 1)),
})); function ($val) use ($indent) {
return F\concat($indent . $val);
}));
} }
throw new InvalidArgumentException('Common:indent first parameter must be either an array or a string. Input was: '.$in); throw new InvalidArgumentException('Common:indent first parameter must be either an array or a string. Input was: ' . $in);
} }
} }

View File

@ -57,8 +57,9 @@ class GNUsocial implements EventSubscriberInterface
/** /**
* Symfony dependency injection gives us access to these services * Symfony dependency injection gives us access to these services
* @param ContainerInterface $container *
* @param LoggerInterface $logger * @param ContainerInterface $container
* @param LoggerInterface $logger
* @param TranslatorInterface $translator * @param TranslatorInterface $translator
*/ */
public function __construct(ContainerInterface $container, public function __construct(ContainerInterface $container,
@ -72,6 +73,7 @@ class GNUsocial implements EventSubscriberInterface
/** /**
* Store these services to be accessed statically and load modules * Store these services to be accessed statically and load modules
*
* @param EventDispatcherInterface $event_dispatcher * @param EventDispatcherInterface $event_dispatcher
*/ */
public function register(EventDispatcherInterface $event_dispatcher): void public function register(EventDispatcherInterface $event_dispatcher): void
@ -85,9 +87,11 @@ class GNUsocial implements EventSubscriberInterface
/** /**
* Event very early on in the Symfony HTTP lifecycle, but after everyting is registered * Event very early on in the Symfony HTTP lifecycle, but after everyting is registered
* where we get access to the event dispatcher * where we get access to the event dispatcher
* @param RequestEvent $event *
* @param string $event_name * @param RequestEvent $event
* @param string $event_name
* @param EventDispatcherInterface $event_dispatcher * @param EventDispatcherInterface $event_dispatcher
*
* @return RequestEvent * @return RequestEvent
*/ */
public function onKernelRequest(RequestEvent $event, public function onKernelRequest(RequestEvent $event,
@ -100,9 +104,11 @@ class GNUsocial implements EventSubscriberInterface
/** /**
* Event after everything is initialized when using the `bin/console` command * Event after everything is initialized when using the `bin/console` command
* @param ConsoleCommandEvent $event *
* @param string $event_name * @param ConsoleCommandEvent $event
* @param string $event_name
* @param EventDispatcherInterface $event_dispatcher * @param EventDispatcherInterface $event_dispatcher
*
* @return ConsoleCommandEvent * @return ConsoleCommandEvent
*/ */
public function onCommand(ConsoleCommandEvent $event, public function onCommand(ConsoleCommandEvent $event,

View File

@ -69,11 +69,11 @@ abstract class GSEvent
* Handlers can also abort processing by throwing an exception; these will * Handlers can also abort processing by throwing an exception; these will
* be caught by the closest code and displayed as errors. * be caught by the closest code and displayed as errors.
* *
* @param string $name Name of the event * @param string $name Name of the event
* @param callable $handler Code to run * @param callable $handler Code to run
* @param int $priority Higher runs first * @param int $priority Higher runs first
* @param string $ns
* *
* @param string $ns
* @return void * @return void
*/ */
public static function addHandler(string $name, public static function addHandler(string $name,

View File

@ -32,9 +32,10 @@ abstract class HTML
/** /**
* Creates an HTML tag without attributes * Creates an HTML tag without attributes
* *
* @param string $tag * @param string $tag
* @param array|string $content * @param array|string $content
* @param bool $empty_tag * @param bool $empty_tag
*
* @return array * @return array
*/ */
private static function tag(string $tag, $content = '', bool $empty_tag = false): array private static function tag(string $tag, $content = '', bool $empty_tag = false): array
@ -45,10 +46,11 @@ abstract class HTML
/** /**
* Create tag, possibly with attributes and indentation * Create tag, possibly with attributes and indentation
* *
* @param string $tag * @param string $tag
* @param array|string $attrs - element attributes * @param array|string $attrs - element attributes
* @param array|string $content - what goes inside the tag * @param array|string $content - what goes inside the tag
* @param bool $empty_tag * @param bool $empty_tag
*
* @return array * @return array
*/ */
private static function attr_tag(string $tag, $attrs, $content = '', bool $empty_tag = false): array private static function attr_tag(string $tag, $attrs, $content = '', bool $empty_tag = false): array
@ -66,15 +68,19 @@ abstract class HTML
* Attribute with given optional value * Attribute with given optional value
* *
* @param array $attrs * @param array $attrs
*
* @return string * @return string
*/ */
private static function attr(array $attrs): string private static function attr(array $attrs): string
{ {
return ' ' . implode(' ', F\map($attrs, function ($val, $key, $_) { return "{$key} = '{$val}'"; })); return ' ' . implode(' ', F\map($attrs, function ($val, $key, $_) {
return "{$key} = '{$val}'";
}));
} }
/** /**
* @param $html * @param $html
*
* @return string * @return string
*/ */
public static function html($html): string public static function html($html): string

View File

@ -115,36 +115,37 @@ abstract class I18n
* @throws InvalidArgumentException * @throws InvalidArgumentException
* *
* @return string * @return string
*
*/ */
function _m(string $msg /*, ...*/): string function _m(string $msg /*, ...*/): string
{ {
$domain = I18n::_mdomain(debug_backtrace()); $domain = I18n::_mdomain(debug_backtrace());
$args = func_get_args(); $args = func_get_args();
switch (count($args)) { switch (count($args)) {
case 1: case 1:
// Empty parameters // Empty parameters
return I18n::$translator->trans($msg, [], $domain); return I18n::$translator->trans($msg, [], $domain);
case 2: case 2:
$context = $args[0]; $context = $args[0];
$msg_single = $args[1]; $msg_single = $args[1];
// ASCII 4 is EOT, used to separate context from string // ASCII 4 is EOT, used to separate context from string
return I18n::$translator->trans($context . '\004' . $msg_single, [], $domain); return I18n::$translator->trans($context . '\004' . $msg_single, [], $domain);
case 3: case 3:
// '|' separates the singular from the plural version // '|' separates the singular from the plural version
$msg_single = $args[0]; $msg_single = $args[0];
$msg_plural = $args[1]; $msg_plural = $args[1];
$n = $args[2]; $n = $args[2];
return I18n::$translator->trans($msg_single . '|' . $msg_plural, ['%d' => $n], $domain); return I18n::$translator->trans($msg_single . '|' . $msg_plural, ['%d' => $n], $domain);
case 4: case 4:
// Combine both // Combine both
$context = $args[0]; $context = $args[0];
$msg_single = $args[1]; $msg_single = $args[1];
$msg_plural = $args[2]; $msg_plural = $args[2];
$n = $args[3]; $n = $args[3];
return I18n::$translator->trans($context . '\004' . $msg_single . '|' . $msg_plural, return I18n::$translator->trans($context . '\004' . $msg_single . '|' . $msg_plural,
['%d' => $n], $domain); ['%d' => $n], $domain);
default: default:
throw new InvalidArgumentException('Bad parameter count to _m()'); throw new InvalidArgumentException('Bad parameter count to _m()');
} }
} }
@ -161,7 +162,7 @@ function client_preferred_language(string $http_accept_lang_header): string
$all_languages = Common::config('site', 'languages'); $all_languages = Common::config('site', 'languages');
preg_match_all('"(((\S\S)-?(\S\S)?)(;q=([0-9.]+))?)\s*(,\s*|$)"', preg_match_all('"(((\S\S)-?(\S\S)?)(;q=([0-9.]+))?)\s*(,\s*|$)"',
strtolower($http_accept_lang_header), $http_langs); strtolower($http_accept_lang_header), $http_langs);
for ($i = 0; $i < count($http_langs); ++$i) { for ($i = 0; $i < count($http_langs); ++$i) {
if (!empty($http_langs[2][$i])) { if (!empty($http_langs[2][$i])) {
@ -214,7 +215,7 @@ function is_rtl(string $lang_value): bool
return $info['direction'] == 'rtl'; return $info['direction'] == 'rtl';
} }
} }
throw new InvalidArgumentException('is_rtl function received an invalid lang to test. Lang was: '.$lang_value); throw new InvalidArgumentException('is_rtl function received an invalid lang to test. Lang was: ' . $lang_value);
} }
/** /**

View File

@ -56,9 +56,9 @@ abstract class ModulesManager
$methods = get_class_methods($class); $methods = get_class_methods($class);
$events = F\select($methods, F\partial_right('App\Util\Common::startsWith', 'on')); $events = F\select($methods, F\partial_right('App\Util\Common::startsWith', 'on'));
F\map($events, F\map($events,
function (string $m) use ($class) { function (string $m) use ($class) {
Event::addHandler(substr($m, 2), [$class, $m]); Event::addHandler(substr($m, 2), [$class, $m]);
}); });
} }
} }
} }

View File

@ -46,8 +46,9 @@ class RouteLoader extends Loader
* Must conform to symfony's interface, but the $resource is unused * Must conform to symfony's interface, but the $resource is unused
* and $type must not be null * and $type must not be null
* *
* @param mixed $resource * @param mixed $resource
* @param string|null $type * @param null|string $type
*
* @return RouteCollection * @return RouteCollection
*/ */
public function load($resource, string $type = null): RouteCollection public function load($resource, string $type = null): RouteCollection
@ -67,47 +68,47 @@ class RouteLoader extends Loader
/** /**
* Connect a route to a controller * Connect a route to a controller
* *
* @param string $id * @param string $id
* @param string $uri_path * @param string $uri_path
* @param mixed $target Some kind of callable, typically [object, method] * @param mixed $target Some kind of callable, typically [object, method]
* @param array|null $param_reqs * @param null|array $param_reqs
* @param array|null $options Possible keys are ['condition', 'defaults', 'format', * @param null|array $options Possible keys are ['condition', 'defaults', 'format',
* 'fragment', 'http-methods', 'locale', 'methods', 'schemes'] * 'fragment', 'http-methods', 'locale', 'methods', 'schemes']
* 'http-methods' and 'methods' are aliases * 'http-methods' and 'methods' are aliases
*/ */
public function connect(string $id, string $uri_path, $target, ?array $param_reqs = [], ?array $options = []) public function connect(string $id, string $uri_path, $target, ?array $param_reqs = [], ?array $options = [])
{ {
$this->rc->add($id, $this->rc->add($id,
new Route( new Route(
// path -- URI path // path -- URI path
$uri_path, $uri_path,
// defaults = [] -- param default values, // defaults = [] -- param default values,
// and special configuration options // and special configuration options
array_merge( array_merge(
[ [
'_controller' => is_array($target) ? $target : [$target, '__invoke'], '_controller' => is_array($target) ? $target : [$target, '__invoke'],
'_format' => $options['format'] ?? 'html', '_format' => $options['format'] ?? 'html',
'_fragment' => $options['fragment'] ?? '', '_fragment' => $options['fragment'] ?? '',
'_locale' => $options['locale'] ?? '', '_locale' => $options['locale'] ?? '',
], ],
$options['defaults'] ?? []), $options['defaults'] ?? []),
// requirements = [] -- param => regex // requirements = [] -- param => regex
$param_reqs, $param_reqs,
// options = [] -- possible keys: compiler_class:, utf8 // options = [] -- possible keys: compiler_class:, utf8
// No need for a special compiler class for now, // No need for a special compiler class for now,
// Enforce UTF8 // Enforce UTF8
['utf8' => true], ['utf8' => true],
// host = '' -- hostname (subdomain, for instance) to match, // host = '' -- hostname (subdomain, for instance) to match,
// we don't want this // we don't want this
'', '',
// schemes = [] -- URI schemes (https, ftp and such) // schemes = [] -- URI schemes (https, ftp and such)
$options['schemes'] ?? [], $options['schemes'] ?? [],
// methods = [] -- HTTP methods // methods = [] -- HTTP methods
$options['http-methods'] ?? $options['methods'] ?? [], $options['http-methods'] ?? $options['methods'] ?? [],
// condition = '' -- Symfony condition expression, // condition = '' -- Symfony condition expression,
// see https://symfony.com/doc/current/routing.html#matching-expressions // see https://symfony.com/doc/current/routing.html#matching-expressions
$options['condition'] ?? '' $options['condition'] ?? ''
) )
); );
} }
@ -116,8 +117,9 @@ class RouteLoader extends Loader
* Passed the arguments from the `RoutingConfigurator::import` call from * Passed the arguments from the `RoutingConfigurator::import` call from
* `config/routes.php` * `config/routes.php`
* *
* @param mixed $resource Unused * @param mixed $resource Unused
* @param string|null $type * @param null|string $type
*
* @return bool * @return bool
*/ */
public function supports($resource, string $type = null) public function supports($resource, string $type = null)

View File

@ -83,12 +83,12 @@ class SchemaDefDriver extends StaticPHPDriver
// TODO // TODO
// Convert old to new types // Convert old to new types
$type = // $name === 'date' $type = // $name === 'date'
// // Old date fields were stored as int, store as datetime/timestamp // // Old date fields were stored as int, store as datetime/timestamp
// ? 'datetime' // ? 'datetime'
// // For ints, prepend the size (smallint) // // For ints, prepend the size (smallint)
// // The size field doesn't exist otherwise // // The size field doesn't exist otherwise
// : // :
self::types[($opts['size'] ?? '') . $opts['type']]; self::types[($opts['size'] ?? '') . $opts['type']];
$unique = null; $unique = null;
foreach ($schema['unique keys'] ?? [] as $key => $uniq_arr) { foreach ($schema['unique keys'] ?? [] as $key => $uniq_arr) {
@ -119,8 +119,8 @@ class SchemaDefDriver extends StaticPHPDriver
'scale' => $opts['scale'] ?? null, 'scale' => $opts['scale'] ?? null,
'options' => [ 'options' => [
'comment' => $opts['description'] ?? null, 'comment' => $opts['description'] ?? null,
'default' => $opts['default'] ?? null, 'default' => $opts['default'] ?? null,
'unsigned' => $opts['unsigned'] ?? null, 'unsigned' => $opts['unsigned'] ?? null,
// bool, optional // bool, optional
'fixed' => $opts['type'] === 'char', 'fixed' => $opts['type'] === 'char',
// 'collation' => string, unused // 'collation' => string, unused
@ -129,7 +129,7 @@ class SchemaDefDriver extends StaticPHPDriver
// 'columnDefinition', unused // 'columnDefinition', unused
]; ];
// The optional feilds from earlier were populated with null, remove them // The optional feilds from earlier were populated with null, remove them
$field = array_filter($field, F\not('is_null')); $field = array_filter($field, F\not('is_null'));
$field['options'] = array_filter($field['options'], F\not('is_null')); $field['options'] = array_filter($field['options'], F\not('is_null'));
$metadata->mapField($field); $metadata->mapField($field);
@ -146,6 +146,7 @@ class SchemaDefDriver extends StaticPHPDriver
* instead of `loadMetadata`. * instead of `loadMetadata`.
* *
* @param string $class_name * @param string $class_name
*
* @return bool * @return bool
*/ */
public function isTransient($class_name) public function isTransient($class_name)
@ -155,7 +156,9 @@ class SchemaDefDriver extends StaticPHPDriver
/** /**
* Convert [$key => $val] to ['name' => $key, 'columns' => $val] * Convert [$key => $val] to ['name' => $key, 'columns' => $val]
*
* @param array $arr * @param array $arr
*
* @return array * @return array
*/ */
private static function kv_to_name_col(array $arr): array private static function kv_to_name_col(array $arr): array