We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e4d58 commit 4f27bd6Copy full SHA for 4f27bd6
1 file changed
src/Dtos/MediaAssetDto.php
@@ -54,6 +54,26 @@ public static function fromModel($model)
54
])->setModel($model);
55
}
56
57
+ public function getFilename(): ?string
58
+ {
59
+ return $this->model->getFirstMedia()?->file_name;
60
+ }
61
+
62
+ public function getMimeType(): ?string
63
64
+ return $this->model->getFirstMedia()?->mime_type;
65
66
67
+ public function getSize(): ?int
68
69
+ return $this->model->getFirstMedia()?->size;
70
71
72
+ public function getExtension(): ?string
73
74
+ return $this->model->getFirstMedia()?->extension;
75
76
77
public function getUrl(string $conversionName = ''): ?string
78
{
79
$url = null;
0 commit comments