mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
Add PropertyFromHttp trait and update codebase to use new pattern
This commit is contained in:
parent
c35c47b793
commit
acb30b897c
47 changed files with 851 additions and 527 deletions
|
@ -2,11 +2,16 @@
|
|||
use Safe\DateTimeImmutable;
|
||||
|
||||
class GitCommit{
|
||||
public ?int $EbookId = null;
|
||||
public int $EbookId;
|
||||
public DateTimeImmutable $Created;
|
||||
public string $Message;
|
||||
public string $Hash;
|
||||
|
||||
|
||||
// ***********
|
||||
// ORM METHODS
|
||||
// ***********
|
||||
|
||||
/**
|
||||
* @throws Exceptions\InvalidGitCommitException
|
||||
*/
|
||||
|
@ -26,6 +31,11 @@ class GitCommit{
|
|||
return $instance;
|
||||
}
|
||||
|
||||
|
||||
// *******
|
||||
// METHODS
|
||||
// *******
|
||||
|
||||
/**
|
||||
* @throws Exceptions\ValidationException
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue