ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Prompt.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 class 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