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
AbstractMachine.php
Go to the documentation of this file.
1
<?php
18
declare(strict_types=1);
19
20
namespace
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines
;
21
22
use
ILIAS\ResourceStorage\Flavour\Engine\Engine
;
23
use
ILIAS\ResourceStorage\Flavour\Machine\FlavourMachine
;
24
29
abstract
class
AbstractMachine
implements
FlavourMachine
30
{
31
protected
?
Engine
$engine
=
null
;
32
33
public
function
__construct
()
34
{
35
}
36
37
public
function
withEngine
(
Engine
$engine):
FlavourMachine
38
{
39
$clone = clone $this;
40
$clone->engine =
$engine
;
41
return
$clone;
42
}
43
44
public
function
getEngine
():
Engine
45
{
46
if
($this->engine ===
null
) {
47
throw
new \OutOfBoundsException(
"Engine not available"
);
48
}
49
return
$this->engine
;
50
}
51
}
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\AbstractMachine\withEngine
withEngine(Engine $engine)
The demanded Engine will be passed here.
Definition:
AbstractMachine.php:37
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\AbstractMachine
Definition:
AbstractMachine.php:29
FlavourMachine
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\AbstractMachine\getEngine
getEngine()
Definition:
AbstractMachine.php:44
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines
Definition:
AbstractMachine.php:20
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
ILIAS\ResourceStorage\Flavour\Machine\FlavourMachine
Definition:
FlavourMachine.php:30
ILIAS\ResourceStorage\Flavour\Engine\Engine
Definition:
Engine.php:26
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\AbstractMachine\$engine
Engine $engine
Definition:
AbstractMachine.php:31
Engine
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\AbstractMachine\__construct
__construct()
FlavourMachines must be able to be created without further dependencies.
Definition:
AbstractMachine.php:33
components
ILIAS
ResourceStorage
src
Flavour
Machine
DefaultMachines
AbstractMachine.php
Generated on Sun Apr 6 2025 23:03:58 for ILIAS by
1.8.13 (using
Doxyfile
)