[DB][FOLLOW] Change Follow table

This commit is contained in:
Hugo Sales 2020-08-15 07:06:33 +00:00 committed by Hugo Sales
parent 65a129aac6
commit be83d3532e
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 12 additions and 24 deletions

View File

@ -46,10 +46,10 @@ class File extends Entity
private ?bool $is_url_protected; private ?bool $is_url_protected;
private ?string $url_hash; private ?string $url_hash;
private ?string $file_hash; private ?string $file_hash;
private ?int $actor_id;
private ?string $mimetype; private ?string $mimetype;
private ?int $size; private ?int $size;
private ?string $title; private ?string $title;
private ?int $timestamp;
private ?bool $is_local; private ?bool $is_local;
private DateTimeInterface $modified; private DateTimeInterface $modified;
@ -108,6 +108,17 @@ class File extends Entity
return $this->file_hash; return $this->file_hash;
} }
public function setActorId(?int $actor_id): self
{
$this->actor_id = $actor_id;
return $this;
}
public function getActorId(): ?int
{
return $this->actor_id;
}
public function setMimetype(?string $mimetype): self public function setMimetype(?string $mimetype): self
{ {
$this->mimetype = $mimetype; $this->mimetype = $mimetype;
@ -141,17 +152,6 @@ class File extends Entity
return $this->title; return $this->title;
} }
public function setTimestamp(?int $timestamp): self
{
$this->timestamp = $timestamp;
return $this;
}
public function getTimestamp(): ?int
{
return $this->timestamp;
}
public function setIsLocal(?bool $is_local): self public function setIsLocal(?bool $is_local): self
{ {
$this->is_local = $is_local; $this->is_local = $is_local;

View File

@ -43,7 +43,6 @@ class Follow extends Entity
private int $follower; private int $follower;
private int $followed; private int $followed;
private ?string $uri;
private DateTimeInterface $created; private DateTimeInterface $created;
private DateTimeInterface $modified; private DateTimeInterface $modified;
@ -69,17 +68,6 @@ class Follow extends Entity
return $this->followed; return $this->followed;
} }
public function setUri(?string $uri): self
{
$this->uri = $uri;
return $this;
}
public function getUri(): ?string
{
return $this->uri;
}
public function setCreated(DateTimeInterface $created): self public function setCreated(DateTimeInterface $created): self
{ {
$this->created = $created; $this->created = $created;