web/lib/GitCommit.php
2024-01-08 16:08:57 -06:00

14 lines
338 B
PHP

<?
use Safe\DateTimeImmutable;
class GitCommit{
public DateTimeImmutable $Created;
public string $Message;
public string $Hash;
public function __construct(string $unixTimestamp, string $hash, string $message){
$this->Created = new DateTimeImmutable('@' . $unixTimestamp);
$this->Message = $message;
$this->Hash = $hash;
}
}