Commit 27039ee4 authored by Ben Hayward's avatar Ben Hayward

Added description getter and setters for images

1 merge request!412[Sprint/SillySheep](fix): Failing spam detection causing issues when uploading webm media #1193
Pipeline #100319702 failed with stages
in 2 minutes and 57 seconds
......@@ -386,4 +386,24 @@ class Image extends File
$this->time_sent = $time_sent;
return $this;
}
/**
* Return description
* @return string
*/
public function getDescription(): string
{
return $this->description ?: '';
}
/**
* Set description
* @return Image
*/
public function setDescription($description): Video
{
$this->description = $description;
return $this;
}
}
Please register or to comment