ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ 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
}
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
Created by PhpStorm.
Definition:
BasicScalarValueFactory.php:3
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue
Definition:
ScalarValue.php:9
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\BooleanValue\setValue
setValue($boolean)
Definition:
BooleanValue.php:7
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\BooleanValue
Definition:
BooleanValue.php:5
php
InvalidArgumentException
src
BackgroundTasks
Implementation
Values
ScalarValues
BooleanValue.php
Generated on Thu Jan 16 2025 19:02:36 for ILIAS by
1.8.13 (using
Doxyfile
)