[DATABASE][AUTOCODE] Autogenerated fields, setters and getters for each entity

This commit is contained in:
Hugo Sales
2020-03-30 15:13:51 +00:00
committed by Hugo Sales
parent 55bc66d7ed
commit 6193062590
57 changed files with 4006 additions and 0 deletions

View File

@@ -37,6 +37,73 @@ class FileRedirection
{
// {{{ Autocode
private string $urlhash;
private ?string $url;
private ?int $file_id;
private ?int $redirections;
private ?int $httpcode;
private DateTime $modified;
public function setUrlhash(string $urlhash): self
{
$this->urlhash = $urlhash;
return $this;
}
public function getUrlhash(): string
{
return $this->urlhash;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setFileId(?int $file_id): self
{
$this->file_id = $file_id;
return $this;
}
public function getFileId(): ?int
{
return $this->file_id;
}
public function setRedirections(?int $redirections): self
{
$this->redirections = $redirections;
return $this;
}
public function getRedirections(): ?int
{
return $this->redirections;
}
public function setHttpcode(?int $httpcode): self
{
$this->httpcode = $httpcode;
return $this;
}
public function getHttpcode(): ?int
{
return $this->httpcode;
}
public function setModified(DateTime $modified): self
{
$this->modified = $modified;
return $this;
}
public function getModified(): DateTime
{
return $this->modified;
}
// }}} Autocode
public static function schemaDef(): array