more fields
This commit is contained in:
parent
1da0f427e6
commit
3896856c06
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Reference in a new issue