ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Prompt.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26class Prompt
27{
28 public function __construct(
29 private readonly int $user_id,
30 private readonly ?\DateTimeImmutable $last_prompt,
31 private readonly ?\DateTimeImmutable $first_login
32 ) {
33 }
34
35 public function getUserId(): int
36 {
37 return $this->user_id;
38 }
39
40 public function getLastPrompt(): ?\DateTimeImmutable
41 {
42 return $this->last_prompt;
43 }
44
45 public function getFirstLogin(): ?\DateTimeImmutable
46 {
47 return $this->first_login;
48 }
49}
__construct(private readonly int $user_id, private readonly ?\DateTimeImmutable $last_prompt, private readonly ?\DateTimeImmutable $first_login)
Definition: Prompt.php:28