more fields

This commit is contained in:
Shish 2023-02-14 01:02:58 +00:00
parent 1da0f427e6
commit 3896856c06

View file

@ -36,7 +36,6 @@ class Image
public string $filename; public string $filename;
#[Field] #[Field]
private string $ext; private string $ext;
#[Field]
private string $mime; private string $mime;
/** @var ?string[] */ /** @var ?string[] */
@ -595,6 +594,7 @@ class Image
/** /**
* Get the original filename. * Get the original filename.
*/ */
#[Field(name: "filename")]
public function get_filename(): string public function get_filename(): string
{ {
return $this->filename; return $this->filename;
@ -603,6 +603,7 @@ class Image
/** /**
* Get the image's extension. * Get the image's extension.
*/ */
#[Field(name: "ext")]
public function get_ext(): string public function get_ext(): string
{ {
return $this->ext; return $this->ext;
@ -611,6 +612,7 @@ class Image
/** /**
* Get the image's mime type. * Get the image's mime type.
*/ */
#[Field(name: "mime")]
public function get_mime(): ?string public function get_mime(): ?string
{ {
if ($this->mime===MimeType::WEBP&&$this->lossless) { if ($this->mime===MimeType::WEBP&&$this->lossless) {