From c44443b52cb66a772ce36fc886759e237cea9a14 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 15 Apr 2021 16:58:13 +0000 Subject: [PATCH] [AUTOGENERATED] Update autogenerated code --- components/Bridge/Entity/ForeignLink.php | 1 - src/Entity/Attachment.php | 31 ++++++++++++------------ src/Entity/Cover.php | 5 ++-- src/Entity/Follow.php | 1 - src/Entity/GSActorCircle.php | 12 --------- src/Entity/GSActorTagFollow.php | 24 +++++++++--------- src/Entity/Note.php | 1 - src/Entity/Poll.php | 5 ++-- src/Entity/PollResponse.php | 5 ++-- src/Entity/ProfileColor.php | 5 ++-- src/Entity/RememberMeToken.php | 4 +-- 11 files changed, 37 insertions(+), 57 deletions(-) diff --git a/components/Bridge/Entity/ForeignLink.php b/components/Bridge/Entity/ForeignLink.php index 7a0e0685e9..3334cc0917 100644 --- a/components/Bridge/Entity/ForeignLink.php +++ b/components/Bridge/Entity/ForeignLink.php @@ -38,7 +38,6 @@ use DateTimeInterface; class ForeignLink { // {{{ Autocode - private int $user_id; private int $foreign_id; private int $service; diff --git a/src/Entity/Attachment.php b/src/Entity/Attachment.php index 19b9459904..befc19d483 100644 --- a/src/Entity/Attachment.php +++ b/src/Entity/Attachment.php @@ -43,16 +43,15 @@ class Attachment extends Entity { // {{{ Autocode private int $id; - private ?string $url; - private ?string $url_hash; + private ?string $remote_url; + private ?string $remote_url_hash; private ?string $file_hash; private ?int $gsactor_id; private ?string $mimetype; private ?string $title; private ?string $filename; private ?bool $is_local; - private ?bool $is_nsfw; - private ?bool $is_url_protected; + private ?int $source; private DateTimeInterface $modified; public function setId(int $id): self @@ -66,26 +65,26 @@ class Attachment extends Entity return $this->id; } - public function setUrl(?string $url): self + public function setRemoteUrl(?string $remote_url): self { - $this->url = $url; + $this->remote_url = $remote_url; return $this; } - public function getUrl(): ?string + public function getRemoteUrl(): ?string { - return $this->url; + return $this->remote_url; } - public function setUrlHash(?string $url_hash): self + public function setRemoteUrlHash(?string $remote_url_hash): self { - $this->url_hash = $url_hash; + $this->remote_url_hash = $remote_url_hash; return $this; } - public function getUrlHash(): ?string + public function getRemoteUrlHash(): ?string { - return $this->url_hash; + return $this->remote_url_hash; } public function setFileHash(?string $file_hash): self @@ -154,15 +153,15 @@ class Attachment extends Entity return $this->is_local; } - public function setIsUrlProtected(?bool $is_url_protected): self + public function setSource(?int $source): self { - $this->is_url_protected = $is_url_protected; + $this->source = $source; return $this; } - public function getIsUrlProtected(): ?bool + public function getSource(): ?int { - return $this->is_url_protected; + return $this->source; } public function setModified(DateTimeInterface $modified): self diff --git a/src/Entity/Cover.php b/src/Entity/Cover.php index 6be4237460..aa514601df 100644 --- a/src/Entity/Cover.php +++ b/src/Entity/Cover.php @@ -39,19 +39,18 @@ use DateTimeInterface; class Cover extends Entity { // {{{ Autocode - private int $gsactor_id; private int $file_id; private DateTimeInterface $created; private DateTimeInterface $modified; - public function setGsactorId(int $gsactor_id): self + public function setGSActorId(int $gsactor_id): self { $this->gsactor_id = $gsactor_id; return $this; } - public function getGsactorId(): int + public function getGSActorId(): int { return $this->gsactor_id; } diff --git a/src/Entity/Follow.php b/src/Entity/Follow.php index 2edde5f757..8a82ebb812 100644 --- a/src/Entity/Follow.php +++ b/src/Entity/Follow.php @@ -39,7 +39,6 @@ use DateTimeInterface; class Follow extends Entity { // {{{ Autocode - private int $follower; private int $followed; private DateTimeInterface $created; diff --git a/src/Entity/GSActorCircle.php b/src/Entity/GSActorCircle.php index a16c272b3e..86908add2a 100644 --- a/src/Entity/GSActorCircle.php +++ b/src/Entity/GSActorCircle.php @@ -39,7 +39,6 @@ use DateTimeInterface; class GSActorCircle extends Entity { // {{{ Autocode - private int $id; private int $tagger; private string $tag; private ?string $description; @@ -47,17 +46,6 @@ class GSActorCircle extends Entity private DateTimeInterface $created; private DateTimeInterface $modified; - public function setId(int $id): self - { - $this->id = $id; - return $this; - } - - public function getId(): int - { - return $this->id; - } - public function setTagger(int $tagger): self { $this->tagger = $tagger; diff --git a/src/Entity/GSActorTagFollow.php b/src/Entity/GSActorTagFollow.php index f1d9b421f5..a64eabaf22 100644 --- a/src/Entity/GSActorTagFollow.php +++ b/src/Entity/GSActorTagFollow.php @@ -39,22 +39,11 @@ use DateTimeInterface; class GSActorTagFollow extends Entity { // {{{ Autocode - private int $gsactor_tag; private int $gsactor_id; + private int $gsactor_tag; private DateTimeInterface $created; private DateTimeInterface $modified; - public function setGSActorTag(int $gsactor_tag): self - { - $this->gsactor_tag = $gsactor_tag; - return $this; - } - - public function getGSActorTag(): int - { - return $this->gsactor_tag; - } - public function setGSActorId(int $gsactor_id): self { $this->gsactor_id = $gsactor_id; @@ -66,6 +55,17 @@ class GSActorTagFollow extends Entity return $this->gsactor_id; } + public function setGSActorTag(int $gsactor_tag): self + { + $this->gsactor_tag = $gsactor_tag; + return $this; + } + + public function getGSActorTag(): int + { + return $this->gsactor_tag; + } + public function setCreated(DateTimeInterface $created): self { $this->created = $created; diff --git a/src/Entity/Note.php b/src/Entity/Note.php index b48bb815e1..1b8306f4ae 100644 --- a/src/Entity/Note.php +++ b/src/Entity/Note.php @@ -41,7 +41,6 @@ use DateTimeInterface; class Note extends Entity { // {{{ Autocode - private int $id; private int $gsactor_id; private ?string $content; diff --git a/src/Entity/Poll.php b/src/Entity/Poll.php index 62bfb2053e..36f0bdc5ad 100644 --- a/src/Entity/Poll.php +++ b/src/Entity/Poll.php @@ -38,7 +38,6 @@ use DateTimeInterface; class Poll extends Entity { // {{{ Autocode - private int $id; private ?string $uri; private ?int $gsactor_id; @@ -70,13 +69,13 @@ class Poll extends Entity return $this->uri; } - public function setGsactorId(?int $gsactor_id): self + public function setGSActorId(?int $gsactor_id): self { $this->gsactor_id = $gsactor_id; return $this; } - public function getGsactorId(): ?int + public function getGSActorId(): ?int { return $this->gsactor_id; } diff --git a/src/Entity/PollResponse.php b/src/Entity/PollResponse.php index 2ed74f0409..7314964e99 100644 --- a/src/Entity/PollResponse.php +++ b/src/Entity/PollResponse.php @@ -38,7 +38,6 @@ use DateTimeInterface; class PollResponse extends Entity { // {{{ Autocode - private int $id; private ?string $uri; private int $poll_id; @@ -80,13 +79,13 @@ class PollResponse extends Entity return $this->poll_id; } - public function setGsactorId(?int $gsactor_id): self + public function setGSActorId(?int $gsactor_id): self { $this->gsactor_id = $gsactor_id; return $this; } - public function getGsactorId(): ?int + public function getGSActorId(): ?int { return $this->gsactor_id; } diff --git a/src/Entity/ProfileColor.php b/src/Entity/ProfileColor.php index 1f2f437fcc..e2e195defe 100644 --- a/src/Entity/ProfileColor.php +++ b/src/Entity/ProfileColor.php @@ -37,19 +37,18 @@ use DateTimeInterface; class ProfileColor extends Entity { // {{{ Autocode - private int $gsactor_id; private string $color; private DateTimeInterface $created; private DateTimeInterface $modified; - public function setGsactorId(int $gsactor_id): self + public function setGSActorId(int $gsactor_id): self { $this->gsactor_id = $gsactor_id; return $this; } - public function getGsactorId(): int + public function getGSActorId(): int { return $this->gsactor_id; } diff --git a/src/Entity/RememberMeToken.php b/src/Entity/RememberMeToken.php index 73608794dd..647b95f8ba 100644 --- a/src/Entity/RememberMeToken.php +++ b/src/Entity/RememberMeToken.php @@ -65,13 +65,13 @@ class RememberMeToken extends Entity return $this->value; } - public function setLastUsed(DateTimeInterface $lastused): self + public function setLastused(DateTimeInterface $lastused): self { $this->lastused = $lastused; return $this; } - public function getLastUsed(): DateTimeInterface + public function getLastused(): DateTimeInterface { return $this->lastused; }