Change 'timestamp' properties on objects to more descriptive names

This commit is contained in:
Alex Cabal 2022-06-29 17:19:28 -05:00
parent 18f761929a
commit dbefba6b94
32 changed files with 74 additions and 74 deletions

View file

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