32 lines
589 B
PHP
32 lines
589 B
PHP
<?php
|
|
|
|
namespace sammo\DTO;
|
|
|
|
use LDTO\Attr\Convert;
|
|
use LDTO\Attr\NullIsUndefined;
|
|
use LDTO\Attr\RawName;
|
|
use LDTO\Converter\DateTimeConverter;
|
|
|
|
class GeneralAccessLog extends \LDTO\DTO
|
|
{
|
|
public function __construct(
|
|
#[NullIsUndefined]
|
|
public ?int $id,
|
|
|
|
#[RawName('general_id')]
|
|
public int $generalID,
|
|
|
|
#[RawName('user_id')]
|
|
public ?int $userID,
|
|
|
|
#[RawName('last_refresh')]
|
|
#[Convert(DateTimeConverter::class)]
|
|
public \DateTimeImmutable $lastRefresh,
|
|
|
|
public int $refresh,
|
|
|
|
#[RawName('refresh_total')]
|
|
public int $refreshTotal,
|
|
) {
|
|
}
|
|
} |