WIP
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace sammo\DTO;
|
||||
|
||||
use Spatie\DataTransferObject\Attributes\CastWith;
|
||||
use Spatie\DataTransferObject\Attributes\Strict;
|
||||
use Spatie\DataTransferObject\DataTransferObject;
|
||||
|
||||
use sammo\Enums\ResourceType;
|
||||
use sammo\DTO\Caster\BackedEnumCaster;
|
||||
|
||||
//https://json2dto.atymic.dev/
|
||||
|
||||
|
||||
|
||||
#[Strict]
|
||||
class AuctionInfo extends DataTransferObject
|
||||
{
|
||||
public int $id;
|
||||
public int $openerName;
|
||||
public int $openerGeneralID;
|
||||
public string $type;
|
||||
public bool $finished;
|
||||
#[CastWith(BackedEnumCaster::class)]
|
||||
public ResourceType $reqResource;
|
||||
public string $openDate;
|
||||
public string $closeDate;
|
||||
}
|
||||
Reference in New Issue
Block a user