mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Add link to Github for each commit in an ebooks short commit history
This commit is contained in:
parent
08f707e342
commit
25c40e3e67
3 changed files with 7 additions and 5 deletions
|
@ -4,9 +4,11 @@ use Safe\DateTimeImmutable;
|
|||
class GitCommit{
|
||||
public $Timestamp;
|
||||
public $Message;
|
||||
public $Hash;
|
||||
|
||||
public function __construct(string $unixTimestamp, string $message){
|
||||
public function __construct(string $unixTimestamp, string $hash, string $message){
|
||||
$this->Timestamp = new DateTimeImmutable('@' . $unixTimestamp);
|
||||
$this->Message = $message;
|
||||
$this->Hash = $hash;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue