[DB][FOLLOW] Change Follow table
This commit is contained in:
parent
65a129aac6
commit
be83d3532e
@ -46,10 +46,10 @@ class File extends Entity
|
||||
private ?bool $is_url_protected;
|
||||
private ?string $url_hash;
|
||||
private ?string $file_hash;
|
||||
private ?int $actor_id;
|
||||
private ?string $mimetype;
|
||||
private ?int $size;
|
||||
private ?string $title;
|
||||
private ?int $timestamp;
|
||||
private ?bool $is_local;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
@ -108,6 +108,17 @@ class File extends Entity
|
||||
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
|
||||
{
|
||||
$this->mimetype = $mimetype;
|
||||
@ -141,17 +152,6 @@ class File extends Entity
|
||||
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
|
||||
{
|
||||
$this->is_local = $is_local;
|
||||
|
@ -43,7 +43,6 @@ class Follow extends Entity
|
||||
|
||||
private int $follower;
|
||||
private int $followed;
|
||||
private ?string $uri;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
@ -69,17 +68,6 @@ class Follow extends Entity
|
||||
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
|
||||
{
|
||||
$this->created = $created;
|
||||
|
Loading…
Reference in New Issue
Block a user