[DATABASE][AUTOCODE] Update autocode to use \DateTimeInterface instead of DateTime

This commit is contained in:
Hugo Sales 2020-03-30 17:17:54 +00:00 committed by Hugo Sales
parent c583c0f266
commit 1f35af7169
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
56 changed files with 285 additions and 285 deletions

View File

@ -40,8 +40,8 @@ class Attention
private int $notice_id;
private int $profile_id;
private ?string $reason;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setNoticeId(int $notice_id): self
{
@ -73,22 +73,22 @@ class Attention
return $this->reason;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -43,8 +43,8 @@ class Avatar
private int $height;
private string $mediatype;
private ?string $filename;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setProfileId(int $profile_id): self
{
@ -106,22 +106,22 @@ class Avatar
return $this->filename;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -42,9 +42,9 @@ class ConfirmAddress
private string $address;
private ?string $address_extra;
private string $address_type;
private ?DateTime $claimed;
private ?DateTime $sent;
private DateTime $modified;
private ?\DateTimeInterface $claimed;
private ?\DateTimeInterface $sent;
private \DateTimeInterface $modified;
public function setCode(string $code): self
{
@ -96,32 +96,32 @@ class ConfirmAddress
return $this->address_type;
}
public function setClaimed(?DateTime $claimed): self
public function setClaimed(?\DateTimeInterface $claimed): self
{
$this->claimed = $claimed;
return $this;
}
public function getClaimed(): ?DateTime
public function getClaimed(): ?\DateTimeInterface
{
return $this->claimed;
}
public function setSent(?DateTime $sent): self
public function setSent(?\DateTimeInterface $sent): self
{
$this->sent = $sent;
return $this;
}
public function getSent(): ?DateTime
public function getSent(): ?\DateTimeInterface
{
return $this->sent;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -40,8 +40,8 @@ class Consumer
private string $consumer_key;
private string $consumer_secret;
private string $seed;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setConsumerKey(string $consumer_key): self
{
@ -73,22 +73,22 @@ class Consumer
return $this->seed;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -38,8 +38,8 @@ class Conversation
private int $id;
private string $uri;
private ?string $url;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setId(int $id): self
{
@ -71,22 +71,22 @@ class Conversation
return $this->url;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -49,7 +49,7 @@ class File
private ?string $filename;
private ?int $width;
private ?int $height;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setId(int $id): self
{
@ -171,12 +171,12 @@ class File
return $this->height;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -42,7 +42,7 @@ class FileRedirection
private ?int $file_id;
private ?int $redirections;
private ?int $httpcode;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setUrlhash(string $urlhash): self
{
@ -94,12 +94,12 @@ class FileRedirection
return $this->httpcode;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -43,7 +43,7 @@ class FileThumbnail
private ?string $filename;
private int $width;
private int $height;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setFileId(int $file_id): self
{
@ -105,12 +105,12 @@ class FileThumbnail
return $this->height;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,7 +39,7 @@ class FileToPost
private int $file_id;
private int $post_id;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setFileId(int $file_id): self
{
@ -61,12 +61,12 @@ class FileToPost
return $this->post_id;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -44,10 +44,10 @@ class ForeignLink
private int $noticesync;
private int $friendsync;
private int $profilesync;
private ?DateTime $last_noticesync;
private ?DateTime $last_friendsync;
private DateTime $created;
private DateTime $modified;
private ?\DateTimeInterface $last_noticesync;
private ?\DateTimeInterface $last_friendsync;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setUserId(int $user_id): self
{
@ -119,42 +119,42 @@ class ForeignLink
return $this->profilesync;
}
public function setLastNoticesync(?DateTime $last_noticesync): self
public function setLastNoticesync(?\DateTimeInterface $last_noticesync): self
{
$this->last_noticesync = $last_noticesync;
return $this;
}
public function getLastNoticesync(): ?DateTime
public function getLastNoticesync(): ?\DateTimeInterface
{
return $this->last_noticesync;
}
public function setLastFriendsync(?DateTime $last_friendsync): self
public function setLastFriendsync(?\DateTimeInterface $last_friendsync): self
{
$this->last_friendsync = $last_friendsync;
return $this;
}
public function getLastFriendsync(): ?DateTime
public function getLastFriendsync(): ?\DateTimeInterface
{
return $this->last_friendsync;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -40,8 +40,8 @@ class ForeignService
private int $id;
private string $name;
private ?string $description;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setId(int $id): self
{
@ -73,22 +73,22 @@ class ForeignService
return $this->description;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -40,7 +40,7 @@ class ForeignSubscription
private int $service;
private int $subscriber;
private int $subscribed;
private DateTime $created;
private \DateTimeInterface $created;
public function setService(int $service): self
{
@ -72,12 +72,12 @@ class ForeignSubscription
return $this->subscribed;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}

View File

@ -41,8 +41,8 @@ class ForeignUser
private int $service;
private string $uri;
private ?string $nickname;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setId(int $id): self
{
@ -84,22 +84,22 @@ class ForeignUser
return $this->nickname;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,7 +39,7 @@ class GroupAlias
private string $alias;
private int $group_id;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setAlias(string $alias): self
{
@ -61,12 +61,12 @@ class GroupAlias
return $this->group_id;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -40,7 +40,7 @@ class GroupBlock
private int $group_id;
private int $blocked;
private int $blocker;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setGroupId(int $group_id): self
{
@ -72,12 +72,12 @@ class GroupBlock
return $this->blocker;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,7 +39,7 @@ class GroupInbox
private int $group_id;
private int $notice_id;
private DateTime $created;
private \DateTimeInterface $created;
public function setGroupId(int $group_id): self
{
@ -61,12 +61,12 @@ class GroupInbox
return $this->notice_id;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}

View File

@ -39,7 +39,7 @@ class GroupJoinQueue
private int $profile_id;
private int $group_id;
private DateTime $created;
private \DateTimeInterface $created;
public function setProfileId(int $profile_id): self
{
@ -61,12 +61,12 @@ class GroupJoinQueue
return $this->group_id;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}

View File

@ -41,8 +41,8 @@ class GroupMember
private int $profile_id;
private ?bool $is_admin;
private ?string $uri;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setGroupId(int $group_id): self
{
@ -84,22 +84,22 @@ class GroupMember
return $this->uri;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -41,7 +41,7 @@ class Invitation
private int $user_id;
private string $address;
private string $address_type;
private DateTime $created;
private \DateTimeInterface $created;
private ?int $registered_user_id;
public function setCode(string $code): self
@ -84,12 +84,12 @@ class Invitation
return $this->address_type;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}

View File

@ -39,8 +39,8 @@ class LocalGroup
private int $group_id;
private ?string $nickname;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setGroupId(int $group_id): self
{
@ -62,22 +62,22 @@ class LocalGroup
return $this->nickname;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,8 +39,8 @@ class LocationNamespace
private int $id;
private ?string $description;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setId(int $id): self
{
@ -62,22 +62,22 @@ class LocationNamespace
return $this->description;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,8 +39,8 @@ class LoginToken
private int $user_id;
private string $token;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setUserId(int $user_id): self
{
@ -62,22 +62,22 @@ class LoginToken
return $this->token;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -40,9 +40,9 @@ class Nonce
private string $consumer_key;
private ?string $tok;
private string $nonce;
private DateTime $ts;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $ts;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setConsumerKey(string $consumer_key): self
{
@ -74,32 +74,32 @@ class Nonce
return $this->nonce;
}
public function setTs(DateTime $ts): self
public function setTs(\DateTimeInterface $ts): self
{
$this->ts = $ts;
return $this;
}
public function getTs(): DateTime
public function getTs(): \DateTimeInterface
{
return $this->ts;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -43,8 +43,8 @@ class Notice
private ?string $content;
private ?string $rendered;
private ?string $url;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
private ?int $reply_to;
private ?int $is_local;
private ?string $source;
@ -114,22 +114,22 @@ class Notice
return $this->url;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -42,7 +42,7 @@ class NoticeLocation
private ?float $lon;
private ?int $location_id;
private ?int $location_ns;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setNoticeId(int $notice_id): self
{
@ -94,12 +94,12 @@ class NoticeLocation
return $this->location_ns;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -43,8 +43,8 @@ class NoticePrefs
private string $namespace;
private string $topic;
private $data;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setNoticeId(int $notice_id): self
{
@ -86,22 +86,22 @@ class NoticePrefs
return $this->data;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -41,8 +41,8 @@ class NoticeSource
private string $name;
private string $url;
private int $notice_id;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setCode(string $code): self
{
@ -84,22 +84,22 @@ class NoticeSource
return $this->notice_id;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,7 +39,7 @@ class NoticeTag
private string $tag;
private int $notice_id;
private DateTime $created;
private \DateTimeInterface $created;
public function setTag(string $tag): self
{
@ -61,12 +61,12 @@ class NoticeTag
return $this->notice_id;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}

View File

@ -49,8 +49,8 @@ class OauthApplication
private ?string $callback_url;
private ?int $type;
private ?int $access_type;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setId(int $id): self
{
@ -172,22 +172,22 @@ class OauthApplication
return $this->access_type;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -41,8 +41,8 @@ class OauthApplicationUser
private int $application_id;
private ?int $access_type;
private ?string $token;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setProfileId(int $profile_id): self
{
@ -84,22 +84,22 @@ class OauthApplicationUser
return $this->token;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -40,8 +40,8 @@ class OauthTokenAssociation
private int $profile_id;
private int $application_id;
private string $token;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setProfileId(int $profile_id): self
{
@ -73,22 +73,22 @@ class OauthTokenAssociation
return $this->token;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -41,8 +41,8 @@ class OldSchoolPrefs
private ?bool $stream_mode_only;
private ?bool $conversation_tree;
private ?bool $stream_nicknames;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setUserId(int $user_id): self
{
@ -84,22 +84,22 @@ class OldSchoolPrefs
return $this->stream_nicknames;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -48,8 +48,8 @@ class Profile
private ?float $lon;
private ?int $location_id;
private ?int $location_ns;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setId(int $id): self
{
@ -161,22 +161,22 @@ class Profile
return $this->location_ns;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,7 +39,7 @@ class ProfileBlock
private int $blocker;
private int $blocked;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setBlocker(int $blocker): self
{
@ -61,12 +61,12 @@ class ProfileBlock
return $this->blocked;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -42,8 +42,8 @@ class ProfileList
private string $tag;
private ?string $description;
private ?bool $private;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
private ?string $uri;
private ?string $mainpage;
private ?int $tagged_count;
@ -99,22 +99,22 @@ class ProfileList
return $this->private;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -41,8 +41,8 @@ class ProfilePrefs
private string $namespace;
private string $topic;
private $data;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setProfileId(int $profile_id): self
{
@ -84,22 +84,22 @@ class ProfilePrefs
return $this->data;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,7 +39,7 @@ class ProfileRole
private int $profile_id;
private string $role;
private DateTime $created;
private \DateTimeInterface $created;
public function setProfileId(int $profile_id): self
{
@ -61,12 +61,12 @@ class ProfileRole
return $this->role;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}

View File

@ -40,7 +40,7 @@ class ProfileTag
private int $tagger;
private int $tagged;
private string $tag;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setTagger(int $tagger): self
{
@ -72,12 +72,12 @@ class ProfileTag
return $this->tag;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,8 +39,8 @@ class ProfileTagSubscription
private int $profile_tag_id;
private int $profile_id;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setProfileTagId(int $profile_tag_id): self
{
@ -62,22 +62,22 @@ class ProfileTagSubscription
return $this->profile_id;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -40,8 +40,8 @@ class QueueItem
private int $id;
private $frame;
private string $transport;
private DateTime $created;
private ?DateTime $claimed;
private \DateTimeInterface $created;
private ?\DateTimeInterface $claimed;
public function setId(int $id): self
{
@ -73,22 +73,22 @@ class QueueItem
return $this->transport;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setClaimed(?DateTime $claimed): self
public function setClaimed(?\DateTimeInterface $claimed): self
{
$this->claimed = $claimed;
return $this;
}
public function getClaimed(): ?DateTime
public function getClaimed(): ?\DateTimeInterface
{
return $this->claimed;
}

View File

@ -39,7 +39,7 @@ class RelatedGroup
private int $group_id;
private int $related_group_id;
private DateTime $created;
private \DateTimeInterface $created;
public function setGroupId(int $group_id): self
{
@ -61,12 +61,12 @@ class RelatedGroup
return $this->related_group_id;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}

View File

@ -39,7 +39,7 @@ class RememberMe
private string $code;
private int $user_id;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setCode(string $code): self
{
@ -61,12 +61,12 @@ class RememberMe
return $this->user_id;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,7 +39,7 @@ class Reply
private int $notice_id;
private int $profile_id;
private DateTime $modified;
private \DateTimeInterface $modified;
private ?int $replied_id;
public function setNoticeId(int $notice_id): self
@ -62,12 +62,12 @@ class Reply
return $this->profile_id;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,7 +39,7 @@ class SchemaVersion
private string $table_name;
private string $checksum;
private DateTime $modified;
private \DateTimeInterface $modified;
public function setTableName(string $table_name): self
{
@ -61,12 +61,12 @@ class SchemaVersion
return $this->checksum;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -41,8 +41,8 @@ class Session
private string $id;
private ?string $session_data;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setId(string $id): self
{
@ -64,22 +64,22 @@ class Session
return $this->session_data;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -40,8 +40,8 @@ class SmsCarrier
private int $id;
private ?string $name;
private string $email_pattern;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setId(int $id): self
{
@ -73,22 +73,22 @@ class SmsCarrier
return $this->email_pattern;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -45,8 +45,8 @@ class Subscription
private ?string $token;
private ?string $secret;
private ?string $uri;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setSubscriber(int $subscriber): self
{
@ -118,22 +118,22 @@ class Subscription
return $this->uri;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -39,7 +39,7 @@ class SubscriptionQueue
private int $subscriber;
private int $subscribed;
private DateTime $created;
private \DateTimeInterface $created;
public function setSubscriber(int $subscriber): self
{
@ -61,12 +61,12 @@ class SubscriptionQueue
return $this->subscribed;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}

View File

@ -44,8 +44,8 @@ class Token
private ?int $state;
private ?string $verifier;
private ?string $verified_callback;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setConsumerKey(string $consumer_key): self
{
@ -117,22 +117,22 @@ class Token
return $this->verified_callback;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -38,7 +38,7 @@ class UnavailableStatusNetwork
// {{{ Autocode
private string $nickname;
private DateTime $created;
private \DateTimeInterface $created;
public function setNickname(string $nickname): self
{
@ -50,12 +50,12 @@ class UnavailableStatusNetwork
return $this->nickname;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}

View File

@ -60,8 +60,8 @@ class User
private ?int $subscribe_policy;
private ?string $urlshorteningservice;
private ?bool $private_stream;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setId(int $id): self
{
@ -293,22 +293,22 @@ class User
return $this->private_stream;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -48,8 +48,8 @@ class UserGroup
private ?string $homepage_logo;
private ?string $stream_logo;
private ?string $mini_logo;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
private ?string $uri;
private ?string $mainpage;
private ?int $join_policy;
@ -165,22 +165,22 @@ class UserGroup
return $this->mini_logo;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -41,8 +41,8 @@ class UserImPrefs
private bool $notify;
private bool $replies;
private bool $updatefrompresence;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setUserId(int $user_id): self
{
@ -104,22 +104,22 @@ class UserImPrefs
return $this->updatefrompresence;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -37,8 +37,8 @@ class UserLocationPrefs
private int $user_id;
private ?bool $share_location;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setUserId(int $user_id): self
{
@ -60,22 +60,22 @@ class UserLocationPrefs
return $this->share_location;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -41,8 +41,8 @@ class UserUrlshortenerPrefs
private ?string $urlshorteningservice;
private int $maxurllength;
private int $maxnoticelength;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setUserId(int $user_id): self
{
@ -84,22 +84,22 @@ class UserUrlshortenerPrefs
return $this->maxnoticelength;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}

View File

@ -40,8 +40,8 @@ class UserUsername
private string $provider_name;
private string $username;
private int $user_id;
private DateTime $created;
private DateTime $modified;
private \DateTimeInterface $created;
private \DateTimeInterface $modified;
public function setProviderName(string $provider_name): self
{
@ -73,22 +73,22 @@ class UserUsername
return $this->user_id;
}
public function setCreated(DateTime $created): self
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreated(): DateTime
public function getCreated(): \DateTimeInterface
{
return $this->created;
}
public function setModified(DateTime $modified): self
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
public function getModified(): \DateTimeInterface
{
return $this->modified;
}