ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
SetProbe.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Component\Dependencies
;
22
23
use
ILIAS\Component\Component
;
24
25
class
SetProbe
implements
\ArrayAccess
26
{
27
public
function
__construct
(
28
protected
$probe
29
) {
30
if
(!is_callable($probe)) {
31
throw
new \InvalidArgumentException(
32
"Expected \$probe to be callable."
33
);
34
}
35
}
36
37
public
function
offsetExists
($offset): bool
38
{
39
return
false
;
40
}
41
42
public
function
offsetGet
($offset): mixed
43
{
44
throw
new \LogicException(
45
"Write-only dependency type used for reading."
46
);
47
}
48
49
public
function
offsetSet
($offset, $value): void
50
{
51
$probe = $this->probe;
52
$probe($offset, $value);
53
}
54
55
public
function
offsetUnset
($offset): void
56
{
57
}
58
}
ILIAS\Component\Dependencies\SetProbe\offsetGet
offsetGet($offset)
Definition:
SetProbe.php:42
ILIAS\Component\Dependencies\SetProbe\offsetExists
offsetExists($offset)
Definition:
SetProbe.php:37
ILIAS\Component\Dependencies\SetProbe\offsetSet
offsetSet($offset, $value)
Definition:
SetProbe.php:49
ILIAS\Component\Dependencies\SetProbe
Definition:
SetProbe.php:25
ILIAS\Component\Dependencies\SetProbe\offsetUnset
offsetUnset($offset)
Definition:
SetProbe.php:55
ILIAS\Component\Dependencies\SetProbe\__construct
__construct(protected $probe)
Definition:
SetProbe.php:27
Component
ILIAS\Component\Dependencies
Definition:
Define.php:21
components
ILIAS
Component
src
Dependencies
SetProbe.php
Generated on Sun Apr 6 2025 23:02:50 for ILIAS by
1.8.13 (using
Doxyfile
)