expand impression with end time

This commit is contained in:
Dennis Eichhorn 2023-10-04 01:51:51 +00:00
parent be8ae797db
commit e51b7ba93c

View File

@ -59,6 +59,14 @@ class ImpressionStat
*/
public \DateTime $datetime;
/**
* Request time
*
* @var null|\DateTime
* @since 1.0.0
*/
public ?\DateTime $end = null;
/**
* Request host/domain
*
@ -148,6 +156,7 @@ class ImpressionStat
'country' => $this->country,
'referer' => $this->referer,
'datetime' => $this->datetime->getTimestamp(),
'end' => $this->end?->getTimestamp(),
'meta' => $this->meta,
];
}