ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
PageReadingTime.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\ContentPage\PageMetrics\ValueObject
;
22
23
use
ilException
;
24
30
class
PageReadingTime
31
{
32
private
int
$minutes
;
33
39
public
function
__construct
(
int
$minutes)
40
{
41
if
($minutes < 0) {
42
throw
new
ilException
(
'The reading time MUST be a positive integer!'
);
43
}
44
45
if
($minutes > PHP_INT_MAX) {
46
throw
new
ilException
(
'The reading time MUST NOT exceed the maximum integer!'
);
47
}
48
49
$this->
minutes
=
$minutes
;
50
}
51
52
public
function
minutes
():
int
53
{
54
return
$this->minutes
;
55
}
56
}
ilException
ILIAS\ContentPage\PageMetrics\ValueObject\PageReadingTime\$minutes
int $minutes
Definition:
PageReadingTime.php:32
ILIAS\ContentPage\PageMetrics\ValueObject\PageReadingTime
Definition:
PageReadingTime.php:30
ILIAS\ContentPage\PageMetrics\ValueObject
Definition:
PageReadingTime.php:21
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\ContentPage\PageMetrics\ValueObject\PageReadingTime\minutes
minutes()
Definition:
PageReadingTime.php:52
ILIAS\ContentPage\PageMetrics\ValueObject\PageReadingTime\__construct
__construct(int $minutes)
PageReadingTime constructor.
Definition:
PageReadingTime.php:39
Modules
ContentPage
classes
PageMetrics
ValueObject
PageReadingTime.php
Generated on Tue Apr 1 2025 22:01:23 for ILIAS by
1.8.13 (using
Doxyfile
)