forked from GNUsocial/gnu-social
[AUTOGENERATED] Update auto generated code
This commit is contained in:
@@ -59,7 +59,7 @@ class Attachment extends Entity
|
||||
// {{{ Autocode
|
||||
// @codeCoverageIgnoreStart
|
||||
private int $id;
|
||||
private int $lives = 1;
|
||||
private int $lives;
|
||||
private ?string $filehash;
|
||||
private ?string $mimetype;
|
||||
private ?string $filename;
|
||||
@@ -79,19 +79,20 @@ class Attachment extends Entity
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function setLives(int $lives): self
|
||||
{
|
||||
$this->lives = $lives;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLives(): int
|
||||
{
|
||||
return $this->lives;
|
||||
}
|
||||
|
||||
public function setLives(int $lives): void
|
||||
{
|
||||
$this->lives = $lives;
|
||||
}
|
||||
|
||||
public function setFilehash(?string $filehash): self
|
||||
{
|
||||
$this->filehash = $filehash;
|
||||
$this->filehash = mb_substr($filehash, 0, 64);
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -102,7 +103,7 @@ class Attachment extends Entity
|
||||
|
||||
public function setMimetype(?string $mimetype): self
|
||||
{
|
||||
$this->mimetype = $mimetype;
|
||||
$this->mimetype = mb_substr($mimetype, 0, 255);
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -113,7 +114,7 @@ class Attachment extends Entity
|
||||
|
||||
public function setFilename(?string $filename): self
|
||||
{
|
||||
$this->filename = $filename;
|
||||
$this->filename = mb_substr($filename, 0, 191);
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -317,7 +318,6 @@ class Attachment extends Entity
|
||||
Event::handle('AttachmentGetBestTitle', [$this, $note, &$title]);
|
||||
return $title;
|
||||
}
|
||||
|
||||
});
|
||||
if ($title != null) {
|
||||
return $title;
|
||||
|
||||
@@ -66,12 +66,11 @@ class AttachmentThumbnail extends Entity
|
||||
'medium' => self::SIZE_MEDIUM,
|
||||
'big' => self::SIZE_BIG,
|
||||
];
|
||||
|
||||
// {{{ Autocode
|
||||
// @codeCoverageIgnoreStart
|
||||
private int $attachment_id;
|
||||
private ?string $mimetype;
|
||||
private int $size = self::SIZE_SMALL;
|
||||
private int $size = 0;
|
||||
private string $filename;
|
||||
private int $width;
|
||||
private int $height;
|
||||
@@ -90,7 +89,7 @@ class AttachmentThumbnail extends Entity
|
||||
|
||||
public function setMimetype(?string $mimetype): self
|
||||
{
|
||||
$this->mimetype = $mimetype;
|
||||
$this->mimetype = mb_substr($mimetype, 0, 129);
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -99,20 +98,20 @@ class AttachmentThumbnail extends Entity
|
||||
return $this->mimetype;
|
||||
}
|
||||
|
||||
public function getSize(): int
|
||||
{
|
||||
return $this->size;
|
||||
}
|
||||
|
||||
public function setSize(int $size): self
|
||||
{
|
||||
$this->size = $size;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSize(): int
|
||||
{
|
||||
return $this->size;
|
||||
}
|
||||
|
||||
public function setFilename(string $filename): self
|
||||
{
|
||||
$this->filename = $filename;
|
||||
$this->filename = mb_substr($filename, 0, 191);
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -121,6 +120,28 @@ class AttachmentThumbnail extends Entity
|
||||
return $this->filename;
|
||||
}
|
||||
|
||||
public function setWidth(int $width): self
|
||||
{
|
||||
$this->width = $width;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getWidth(): int
|
||||
{
|
||||
return $this->width;
|
||||
}
|
||||
|
||||
public function setHeight(int $height): self
|
||||
{
|
||||
$this->height = $height;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHeight(): int
|
||||
{
|
||||
return $this->height;
|
||||
}
|
||||
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
@@ -132,28 +153,6 @@ class AttachmentThumbnail extends Entity
|
||||
return $this->modified;
|
||||
}
|
||||
|
||||
public function getWidth(): int
|
||||
{
|
||||
return $this->width;
|
||||
}
|
||||
|
||||
public function setWidth(int $width): self
|
||||
{
|
||||
$this->width = $width;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHeight(): int
|
||||
{
|
||||
return $this->height;
|
||||
}
|
||||
|
||||
public function setHeight(int $height): self
|
||||
{
|
||||
$this->height = $height;
|
||||
return $this;
|
||||
}
|
||||
|
||||
// @codeCoverageIgnoreEnd
|
||||
// }}} Autocode
|
||||
|
||||
|
||||
@@ -39,21 +39,10 @@ class AttachmentToLink extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
// @codeCoverageIgnoreStart
|
||||
private int $attachment_id;
|
||||
private int $link_id;
|
||||
private int $attachment_id;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setAttachmentId(int $attachment_id): self
|
||||
{
|
||||
$this->attachment_id = $attachment_id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAttachmentId(): int
|
||||
{
|
||||
return $this->attachment_id;
|
||||
}
|
||||
|
||||
public function setLinkId(int $link_id): self
|
||||
{
|
||||
$this->link_id = $link_id;
|
||||
@@ -65,6 +54,17 @@ class AttachmentToLink extends Entity
|
||||
return $this->link_id;
|
||||
}
|
||||
|
||||
public function setAttachmentId(int $attachment_id): self
|
||||
{
|
||||
$this->attachment_id = $attachment_id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAttachmentId(): int
|
||||
{
|
||||
return $this->attachment_id;
|
||||
}
|
||||
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
|
||||
Reference in New Issue
Block a user