mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
14 lines
338 B
PHP
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;
|
|
}
|
|
}
|