ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
IntegerValue.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
;
4
5
use
ILIAS\BackgroundTasks\Exceptions\InvalidArgumentException
;
6
7
class
IntegerValue
extends
ScalarValue
8
{
9
public
function
setValue
($integer)
10
{
11
if
(!is_integer($integer)) {
12
throw
new
InvalidArgumentException
(
"The value given must be an integer! See php-documentation is_integer()."
);
13
}
14
15
parent::setValue($integer);
16
}
17
}
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
Created by PhpStorm.
Definition:
BasicScalarValueFactory.php:3
InvalidArgumentException
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\IntegerValue\setValue
setValue($integer)
Definition:
IntegerValue.php:9
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue
Definition:
ScalarValue.php:9
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\IntegerValue
Definition:
IntegerValue.php:7
php
InvalidArgumentException
src
BackgroundTasks
Implementation
Values
ScalarValues
IntegerValue.php
Generated on Thu Jan 16 2025 19:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)