ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
UserSettings.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\DataProtection;
22 
28 
30 {
31  public function __construct(private readonly SelectSetting $user_pref)
32  {
33  }
34 
38  public function withdrawalRequested(): Setting
39  {
40  return $this->user_pref->typed('dpro_withdrawal_requested', fn(Marshal $m) => $m->boolean());
41  }
42 
46  public function agreeDate(): Setting
47  {
48  return $this->user_pref->typed('dpro_agree_date', fn(Marshal $m) => $m->nullable($m->dateTime()));
49  }
50 }
__construct(private readonly SelectSetting $user_pref)