ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
StringValue.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
;
20
21
use
ILIAS\BackgroundTasks\Exceptions\InvalidArgumentException
;
22
23
class
StringValue
extends
ScalarValue
24
{
25
#[\Override]
26
public
function
setValue
(
$value
): void
27
{
28
if
(!is_string(
$value
)) {
29
throw
new
InvalidArgumentException
(
"The value given must be a string! See php-documentation is_string()."
);
30
}
31
parent::setValue(
$value
);
32
}
33
}
ILIAS\BackgroundTasks\Exceptions\InvalidArgumentException
Class Exception Thrown if some procedure did not get the arguments it expected.
Definition:
InvalidArgumentException.php:26
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue
Definition:
ScalarValue.php:26
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue\$value
$value
Definition:
ScalarValue.php:30
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\StringValue
Definition:
StringValue.php:24
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\StringValue\setValue
setValue($value)
Definition:
StringValue.php:26
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
BasicScalarValueFactory.php:19
components
ILIAS
BackgroundTasks
src
Implementation
Values
ScalarValues
StringValue.php
Generated on Sat Oct 18 2025 23:02:36 for ILIAS by
1.9.4 (using
Doxyfile
)