ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
BooleanValue.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
;
4
5
class
BooleanValue
extends
ScalarValue
6
{
7
public
function
setValue
($boolean)
8
{
9
if
(!is_bool($boolean)) {
10
throw
new
InvalidArgumentException
(
"The value given must be a boolean! See php-documentation is_bool()."
);
11
}
12
$this->value = $boolean;
13
}
14
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\BackgroundTasks\Exceptions\InvalidArgumentException
Class Exception.
Definition:
InvalidArgumentException.php:12
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\BooleanValue
Definition:
BooleanValue.php:6
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\BooleanValue\setValue
setValue($boolean)
Definition:
BooleanValue.php:7
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue
Definition:
ScalarValue.php:10
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
Created by PhpStorm.
Definition:
BasicScalarValueFactory.php:3
src
BackgroundTasks
Implementation
Values
ScalarValues
BooleanValue.php
Generated on Fri Oct 3 2025 21:01:09 for ILIAS by
1.9.4 (using
Doxyfile
)