[AUTOGENERATED] Update auto generated code

This commit is contained in:
2021-12-26 15:12:06 +00:00
committed by Diogo Peralta Cordeiro
parent 68076d73dd
commit c79b1e4c94
61 changed files with 426 additions and 434 deletions

View File

@@ -65,20 +65,20 @@ class Link extends Entity
return $this->id;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrlHash(?string $url_hash): self
{
$this->url_hash = $url_hash;
$this->url_hash = mb_substr($url_hash, 0, 64);
return $this;
}
@@ -89,7 +89,7 @@ class Link extends Entity
public function setMimetype(?string $mimetype): self
{
$this->mimetype = $mimetype;
$this->mimetype = mb_substr($mimetype, 0, 50);
return $this;
}
@@ -98,18 +98,6 @@ class Link extends Entity
return $this->mimetype;
}
public function getMimetypeMajor(): ?string
{
$mime = $this->getMimetype();
return \is_null($mime) ? $mime : GSFile::mimetypeMajor($mime);
}
public function getMimetypeMinor(): ?string
{
$mime = $this->getMimetype();
return \is_null($mime) ? $mime : GSFile::mimetypeMinor($mime);
}
public function setModified(DateTimeInterface $modified): self
{
$this->modified = $modified;
@@ -172,6 +160,18 @@ class Link extends Entity
}
}
public function getMimetypeMajor(): ?string
{
$mime = $this->getMimetype();
return \is_null($mime) ? $mime : GSFile::mimetypeMajor($mime);
}
public function getMimetypeMinor(): ?string
{
$mime = $this->getMimetype();
return \is_null($mime) ? $mime : GSFile::mimetypeMinor($mime);
}
public static function schemaDef(): array
{
return [