ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
ConditionalIntercept.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LegalDocuments\Intercept
;
22
23
use
ILIAS\LegalDocuments\Value\Target
;
24
use
ILIAS\LegalDocuments\Intercept
;
25
use
Closure
;
26
27
final
class
ConditionalIntercept
implements
Intercept
28
{
32
public
function
__construct
(
33
private
readonly
Closure
$intercept,
34
private
readonly
string
$id
,
35
private
readonly
Target
$target
36
) {
37
}
38
39
public
function
intercept
(): bool
40
{
41
return
($this->
intercept
)();
42
}
43
44
public
function
id
(): string
45
{
46
return
$this->id
;
47
}
48
49
public
function
target
():
Target
50
{
51
return
$this->target;
52
}
53
}
ILIAS\LegalDocuments\Intercept
Definition:
ConditionalIntercept.php:21
Closure
ILIAS\LegalDocuments\Intercept\ConditionalIntercept\__construct
__construct(private readonly Closure $intercept, private readonly string $id, private readonly Target $target)
Definition:
ConditionalIntercept.php:32
ILIAS\LegalDocuments\Intercept\ConditionalIntercept\target
target()
Definition:
ConditionalIntercept.php:49
ILIAS\LegalDocuments\Value\Target
Definition:
Target.php:23
ILIAS\LegalDocuments\Intercept\ConditionalIntercept\id
id()
Definition:
ConditionalIntercept.php:44
ILIAS\LegalDocuments\Intercept\ConditionalIntercept\intercept
intercept()
Definition:
ConditionalIntercept.php:39
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
Target
ILIAS\LegalDocuments\Intercept\ConditionalIntercept
Definition:
ConditionalIntercept.php:27
ILIAS\LegalDocuments\Intercept
Definition:
Intercept.php:25
components
ILIAS
LegalDocuments
classes
Intercept
ConditionalIntercept.php
Generated on Mon Sep 1 2025 23:03:23 for ILIAS by
1.8.13 (using
Doxyfile
)