🎉 initial commit
This commit is contained in:
65
classes/Application/Models/Image.php
Normal file
65
classes/Application/Models/Image.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Application\Models;
|
||||
|
||||
use JMS\Serializer\Annotation\SerializedName;
|
||||
use JMS\Serializer\Annotation\Type;
|
||||
|
||||
class Image
|
||||
{
|
||||
use Meta;
|
||||
|
||||
#[SerializedName('path')]
|
||||
#[Type('string')]
|
||||
private string $path;
|
||||
|
||||
#[SerializedName('title')]
|
||||
#[Type('string')]
|
||||
private string $title;
|
||||
|
||||
#[SerializedName('mime')]
|
||||
#[Type('string')]
|
||||
private string $mime;
|
||||
|
||||
#[SerializedName('type')]
|
||||
#[Type('string')]
|
||||
private string $type;
|
||||
|
||||
#[SerializedName('description')]
|
||||
#[Type('string')]
|
||||
private string $description;
|
||||
|
||||
#[SerializedName('tags')]
|
||||
#[Type('array')]
|
||||
private array $tags;
|
||||
|
||||
#[SerializedName('size')]
|
||||
#[Type('string')]
|
||||
private string $size;
|
||||
|
||||
#[SerializedName('colors')]
|
||||
#[Type('array')]
|
||||
private array $colors;
|
||||
|
||||
#[SerializedName('width')]
|
||||
#[Type('string')]
|
||||
private string $width;
|
||||
|
||||
#[SerializedName('height')]
|
||||
#[Type('string')]
|
||||
private string $height;
|
||||
|
||||
#[SerializedName('altText')]
|
||||
#[Type('string')]
|
||||
private string $altText;
|
||||
|
||||
#[SerializedName('thumbhash')]
|
||||
#[Type('string')]
|
||||
private string $thumbhash;
|
||||
|
||||
#[SerializedName('folder')]
|
||||
#[Type('string')]
|
||||
private string $folder;
|
||||
}
|
Reference in New Issue
Block a user