ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
UserAction.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LegalDocuments
;
22
23
use
DateTimeImmutable
;
24
use
ILIAS\Data\Clock\ClockInterface
as
Clock
;
25
use
ILIAS\LegalDocuments\Value\Edit
;
26
use
ilObjUser
;
27
28
class
UserAction
29
{
30
public
function
__construct
(
private
readonly
ilObjUser
$user,
private
readonly
Clock
$clock)
31
{
32
}
33
34
public
function
modifiedNow
():
Edit
35
{
36
return
new
Edit
($this->
user
->getId(), $this->clock->now());
37
}
38
}
DateTimeImmutable
ILIAS\LegalDocuments
Definition:
Administration.php:21
ILIAS\LegalDocuments\Value\Edit
Definition:
Edit.php:25
ILIAS\LegalDocuments\UserAction\__construct
__construct(private readonly ilObjUser $user, private readonly Clock $clock)
Definition:
UserAction.php:30
ILIAS\Repository\user
user()
Definition:
trait.GlobalDICDomainServices.php:63
ILIAS\LegalDocuments\UserAction
Definition:
UserAction.php:28
ilObjUser
Edit
ClockInterface
ILIAS\LegalDocuments\UserAction\modifiedNow
modifiedNow()
Definition:
UserAction.php:34
Services
LegalDocuments
classes
UserAction.php
Generated on Wed Sep 10 2025 14:11:33 for ILIAS by
1.8.13 (using
Doxyfile
)