ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
q
r
s
t
u
v
w
x
z
+
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
PageReadingTime.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
namespace
ILIAS\ContentPage\PageMetrics\ValueObject
;
5
6
use
ilException
;
7
13
final
class
PageReadingTime
14
{
16
private
$minutes
;
17
23
public
function
__construct
(
int
$minutes
)
24
{
25
if
($minutes < 0) {
26
throw
new
ilException
(
'The reading time MUST be a positive integer!'
);
27
}
28
29
if
($minutes > PHP_INT_MAX) {
30
throw
new
ilException
(
'The reading time MUST NOT exceed the maximum integer!'
);
31
}
32
33
$this->
minutes
=
$minutes
;
34
}
35
39
public
function
minutes
() : int
40
{
41
return
$this->minutes
;
42
}
43
}
ilException
ILIAS\ContentPage\PageMetrics\ValueObject\PageReadingTime
Definition:
PageReadingTime.php:13
ILIAS\ContentPage\PageMetrics\ValueObject\PageReadingTime\$minutes
$minutes
Definition:
PageReadingTime.php:16
ILIAS\ContentPage\PageMetrics\ValueObject
Definition:
PageReadingTime.php:4
ILIAS\ContentPage\PageMetrics\ValueObject\PageReadingTime\minutes
minutes()
Definition:
PageReadingTime.php:39
ILIAS\ContentPage\PageMetrics\ValueObject\PageReadingTime\__construct
__construct(int $minutes)
PageReadingTime constructor.
Definition:
PageReadingTime.php:23
Modules
ContentPage
classes
PageMetrics
ValueObject
PageReadingTime.php
Generated on Tue Apr 8 2025 21:01:15 for ILIAS by
1.8.13 (using
Doxyfile
)