diff --git a/src/Entity/Attention.php b/src/Entity/Attention.php index c06c0b703d..827eabfd22 100644 --- a/src/Entity/Attention.php +++ b/src/Entity/Attention.php @@ -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; } diff --git a/src/Entity/Avatar.php b/src/Entity/Avatar.php index fbfa3407e1..f553e7b872 100644 --- a/src/Entity/Avatar.php +++ b/src/Entity/Avatar.php @@ -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; } diff --git a/src/Entity/ConfirmAddress.php b/src/Entity/ConfirmAddress.php index d1569398a7..5bc36a97a7 100644 --- a/src/Entity/ConfirmAddress.php +++ b/src/Entity/ConfirmAddress.php @@ -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; } diff --git a/src/Entity/Consumer.php b/src/Entity/Consumer.php index 1ff6368f5f..d4a7c745e2 100644 --- a/src/Entity/Consumer.php +++ b/src/Entity/Consumer.php @@ -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; } diff --git a/src/Entity/Conversation.php b/src/Entity/Conversation.php index 31ccd32657..414a06d66f 100644 --- a/src/Entity/Conversation.php +++ b/src/Entity/Conversation.php @@ -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; } diff --git a/src/Entity/File.php b/src/Entity/File.php index d48eb42ebb..690a500ee4 100644 --- a/src/Entity/File.php +++ b/src/Entity/File.php @@ -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; } diff --git a/src/Entity/FileRedirection.php b/src/Entity/FileRedirection.php index fe9cf82a57..2cc1fe9e0f 100644 --- a/src/Entity/FileRedirection.php +++ b/src/Entity/FileRedirection.php @@ -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; } diff --git a/src/Entity/FileThumbnail.php b/src/Entity/FileThumbnail.php index 0a9c2f6b86..0ec363c252 100644 --- a/src/Entity/FileThumbnail.php +++ b/src/Entity/FileThumbnail.php @@ -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; } diff --git a/src/Entity/FileToPost.php b/src/Entity/FileToPost.php index 3d11165e9d..2b43109e14 100644 --- a/src/Entity/FileToPost.php +++ b/src/Entity/FileToPost.php @@ -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; } diff --git a/src/Entity/ForeignLink.php b/src/Entity/ForeignLink.php index bf5ae2b2c6..ee1a10aeb6 100644 --- a/src/Entity/ForeignLink.php +++ b/src/Entity/ForeignLink.php @@ -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; } diff --git a/src/Entity/ForeignService.php b/src/Entity/ForeignService.php index 6283e92590..be4bedaf15 100644 --- a/src/Entity/ForeignService.php +++ b/src/Entity/ForeignService.php @@ -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; } diff --git a/src/Entity/ForeignSubscription.php b/src/Entity/ForeignSubscription.php index fdc96bd938..3656d27719 100644 --- a/src/Entity/ForeignSubscription.php +++ b/src/Entity/ForeignSubscription.php @@ -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; } diff --git a/src/Entity/ForeignUser.php b/src/Entity/ForeignUser.php index b55e87a3a5..603c156578 100644 --- a/src/Entity/ForeignUser.php +++ b/src/Entity/ForeignUser.php @@ -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; } diff --git a/src/Entity/GroupAlias.php b/src/Entity/GroupAlias.php index 92b9980227..e89f899b77 100644 --- a/src/Entity/GroupAlias.php +++ b/src/Entity/GroupAlias.php @@ -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; } diff --git a/src/Entity/GroupBlock.php b/src/Entity/GroupBlock.php index 9a0d67e645..d5338e1200 100644 --- a/src/Entity/GroupBlock.php +++ b/src/Entity/GroupBlock.php @@ -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; } diff --git a/src/Entity/GroupInbox.php b/src/Entity/GroupInbox.php index 8c5f4a9762..4656646ff5 100644 --- a/src/Entity/GroupInbox.php +++ b/src/Entity/GroupInbox.php @@ -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; } diff --git a/src/Entity/GroupJoinQueue.php b/src/Entity/GroupJoinQueue.php index 34248082ba..9642f357bf 100644 --- a/src/Entity/GroupJoinQueue.php +++ b/src/Entity/GroupJoinQueue.php @@ -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; } diff --git a/src/Entity/GroupMember.php b/src/Entity/GroupMember.php index 9331b22960..5ce012730f 100644 --- a/src/Entity/GroupMember.php +++ b/src/Entity/GroupMember.php @@ -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; } diff --git a/src/Entity/Invitation.php b/src/Entity/Invitation.php index a5a95a7029..c09a4fc681 100644 --- a/src/Entity/Invitation.php +++ b/src/Entity/Invitation.php @@ -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; } diff --git a/src/Entity/LocalGroup.php b/src/Entity/LocalGroup.php index d824aacd16..52266da6fc 100644 --- a/src/Entity/LocalGroup.php +++ b/src/Entity/LocalGroup.php @@ -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; } diff --git a/src/Entity/LocationNamespace.php b/src/Entity/LocationNamespace.php index 35702f50aa..edb1b3608b 100644 --- a/src/Entity/LocationNamespace.php +++ b/src/Entity/LocationNamespace.php @@ -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; } diff --git a/src/Entity/LoginToken.php b/src/Entity/LoginToken.php index acb86eeb0f..038c35dd57 100644 --- a/src/Entity/LoginToken.php +++ b/src/Entity/LoginToken.php @@ -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; } diff --git a/src/Entity/Nonce.php b/src/Entity/Nonce.php index b05ed6651d..37568cd88a 100644 --- a/src/Entity/Nonce.php +++ b/src/Entity/Nonce.php @@ -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; } diff --git a/src/Entity/Notice.php b/src/Entity/Notice.php index 30127c24af..977c98f2b5 100644 --- a/src/Entity/Notice.php +++ b/src/Entity/Notice.php @@ -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; } diff --git a/src/Entity/NoticeLocation.php b/src/Entity/NoticeLocation.php index 91b29ea233..b233929625 100644 --- a/src/Entity/NoticeLocation.php +++ b/src/Entity/NoticeLocation.php @@ -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; } diff --git a/src/Entity/NoticePrefs.php b/src/Entity/NoticePrefs.php index 3f13eadea3..d166a4de9d 100644 --- a/src/Entity/NoticePrefs.php +++ b/src/Entity/NoticePrefs.php @@ -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; } diff --git a/src/Entity/NoticeSource.php b/src/Entity/NoticeSource.php index 10827d1269..2efe575bdc 100644 --- a/src/Entity/NoticeSource.php +++ b/src/Entity/NoticeSource.php @@ -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; } diff --git a/src/Entity/NoticeTag.php b/src/Entity/NoticeTag.php index b01c979bf5..fd7928e52a 100644 --- a/src/Entity/NoticeTag.php +++ b/src/Entity/NoticeTag.php @@ -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; } diff --git a/src/Entity/OauthApplication.php b/src/Entity/OauthApplication.php index a37ef9f06a..394dfe9981 100644 --- a/src/Entity/OauthApplication.php +++ b/src/Entity/OauthApplication.php @@ -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; } diff --git a/src/Entity/OauthApplicationUser.php b/src/Entity/OauthApplicationUser.php index 7fa516f2be..a0a44e5431 100644 --- a/src/Entity/OauthApplicationUser.php +++ b/src/Entity/OauthApplicationUser.php @@ -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; } diff --git a/src/Entity/OauthTokenAssociation.php b/src/Entity/OauthTokenAssociation.php index 2ac51c23a3..0728fd2441 100644 --- a/src/Entity/OauthTokenAssociation.php +++ b/src/Entity/OauthTokenAssociation.php @@ -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; } diff --git a/src/Entity/OldSchoolPrefs.php b/src/Entity/OldSchoolPrefs.php index b15a657559..73649bb154 100644 --- a/src/Entity/OldSchoolPrefs.php +++ b/src/Entity/OldSchoolPrefs.php @@ -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; } diff --git a/src/Entity/Profile.php b/src/Entity/Profile.php index 59052035b0..fba9877d46 100644 --- a/src/Entity/Profile.php +++ b/src/Entity/Profile.php @@ -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; } diff --git a/src/Entity/ProfileBlock.php b/src/Entity/ProfileBlock.php index 65a5131cfd..a828a99b02 100644 --- a/src/Entity/ProfileBlock.php +++ b/src/Entity/ProfileBlock.php @@ -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; } diff --git a/src/Entity/ProfileList.php b/src/Entity/ProfileList.php index bd585f4a9f..ea731440d2 100644 --- a/src/Entity/ProfileList.php +++ b/src/Entity/ProfileList.php @@ -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; } diff --git a/src/Entity/ProfilePrefs.php b/src/Entity/ProfilePrefs.php index 0062eb5fc5..bd6ff28a80 100644 --- a/src/Entity/ProfilePrefs.php +++ b/src/Entity/ProfilePrefs.php @@ -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; } diff --git a/src/Entity/ProfileRole.php b/src/Entity/ProfileRole.php index cce1b901f2..715960e75f 100644 --- a/src/Entity/ProfileRole.php +++ b/src/Entity/ProfileRole.php @@ -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; } diff --git a/src/Entity/ProfileTag.php b/src/Entity/ProfileTag.php index 685f5d2185..b63fa38b61 100644 --- a/src/Entity/ProfileTag.php +++ b/src/Entity/ProfileTag.php @@ -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; } diff --git a/src/Entity/ProfileTagSubscription.php b/src/Entity/ProfileTagSubscription.php index cdb72fe4f9..89246d9772 100644 --- a/src/Entity/ProfileTagSubscription.php +++ b/src/Entity/ProfileTagSubscription.php @@ -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; } diff --git a/src/Entity/QueueItem.php b/src/Entity/QueueItem.php index 138f5811c7..31b2f64e91 100644 --- a/src/Entity/QueueItem.php +++ b/src/Entity/QueueItem.php @@ -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; } diff --git a/src/Entity/RelatedGroup.php b/src/Entity/RelatedGroup.php index ac24781a68..44a1a6c649 100644 --- a/src/Entity/RelatedGroup.php +++ b/src/Entity/RelatedGroup.php @@ -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; } diff --git a/src/Entity/RememberMe.php b/src/Entity/RememberMe.php index 579cb3606b..8d86ea4fae 100644 --- a/src/Entity/RememberMe.php +++ b/src/Entity/RememberMe.php @@ -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; } diff --git a/src/Entity/Reply.php b/src/Entity/Reply.php index d19bc7f4c3..2defa58078 100644 --- a/src/Entity/Reply.php +++ b/src/Entity/Reply.php @@ -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; } diff --git a/src/Entity/SchemaVersion.php b/src/Entity/SchemaVersion.php index 74540ccec4..90f8fc9899 100644 --- a/src/Entity/SchemaVersion.php +++ b/src/Entity/SchemaVersion.php @@ -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; } diff --git a/src/Entity/Session.php b/src/Entity/Session.php index 12e75f9bcc..d71d13fd99 100644 --- a/src/Entity/Session.php +++ b/src/Entity/Session.php @@ -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; } diff --git a/src/Entity/SmsCarrier.php b/src/Entity/SmsCarrier.php index 4f00172b46..16a4f27902 100644 --- a/src/Entity/SmsCarrier.php +++ b/src/Entity/SmsCarrier.php @@ -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; } diff --git a/src/Entity/Subscription.php b/src/Entity/Subscription.php index 333a906b8c..7fe3ec1b43 100644 --- a/src/Entity/Subscription.php +++ b/src/Entity/Subscription.php @@ -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; } diff --git a/src/Entity/SubscriptionQueue.php b/src/Entity/SubscriptionQueue.php index b064262d3c..ef985caef7 100644 --- a/src/Entity/SubscriptionQueue.php +++ b/src/Entity/SubscriptionQueue.php @@ -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; } diff --git a/src/Entity/Token.php b/src/Entity/Token.php index 376092fd9f..44544c4e38 100644 --- a/src/Entity/Token.php +++ b/src/Entity/Token.php @@ -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; } diff --git a/src/Entity/UnavailableStatusNetwork.php b/src/Entity/UnavailableStatusNetwork.php index 486a4f63d7..635f8b9cbc 100644 --- a/src/Entity/UnavailableStatusNetwork.php +++ b/src/Entity/UnavailableStatusNetwork.php @@ -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; } diff --git a/src/Entity/User.php b/src/Entity/User.php index 0f411891a3..ef488c800d 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -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; } diff --git a/src/Entity/UserGroup.php b/src/Entity/UserGroup.php index c47512896a..cf03ad3d3f 100644 --- a/src/Entity/UserGroup.php +++ b/src/Entity/UserGroup.php @@ -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; } diff --git a/src/Entity/UserImPrefs.php b/src/Entity/UserImPrefs.php index 8eb4cfe000..3e4dc73f5e 100644 --- a/src/Entity/UserImPrefs.php +++ b/src/Entity/UserImPrefs.php @@ -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; } diff --git a/src/Entity/UserLocationPrefs.php b/src/Entity/UserLocationPrefs.php index ada69fc3bc..413a86c79d 100644 --- a/src/Entity/UserLocationPrefs.php +++ b/src/Entity/UserLocationPrefs.php @@ -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; } diff --git a/src/Entity/UserUrlshortenerPrefs.php b/src/Entity/UserUrlshortenerPrefs.php index b513945813..53f6448485 100644 --- a/src/Entity/UserUrlshortenerPrefs.php +++ b/src/Entity/UserUrlshortenerPrefs.php @@ -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; } diff --git a/src/Entity/UserUsername.php b/src/Entity/UserUsername.php index d90827ba1e..e0d48809a5 100644 --- a/src/Entity/UserUsername.php +++ b/src/Entity/UserUsername.php @@ -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; }