Made message signing in Cryptography use SHA512 as the message content for... #1
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ class SessionRecord implements SerializableInterface
|
|||
private string $publicKey;
|
||||
private SessionState $state;
|
||||
private DateTime $created;
|
||||
private DateTime $lastRequest;
|
||||
private ?DateTime $lastRequest;
|
||||
|
||||
public function __construct(array $data)
|
||||
{
|
||||
|
@ -53,12 +53,12 @@ class SessionRecord implements SerializableInterface
|
|||
return $this->state;
|
||||
}
|
||||
|
||||
public function getCreated(): int
|
||||
public function getCreated(): DateTime
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function getLastRequest(): int
|
||||
public function getLastRequest(): ?DateTime
|
||||
{
|
||||
return $this->lastRequest;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue