ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
StringValue.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
StringValue
extends
ScalarValue
8
{
9
public
function
setValue
($string)
10
{
11
if
(!is_string($string)) {
12
throw
new
InvalidArgumentException
(
"The value given must be a string! See php-documentation is_string()."
);
13
}
14
parent::setValue($string);
15
}
16
}
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
Created by PhpStorm.
Definition:
BasicScalarValueFactory.php:3
InvalidArgumentException
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue
Definition:
ScalarValue.php:9
InvalidArgumentException
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\StringValue
Definition:
StringValue.php:7
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\StringValue\setValue
setValue($string)
Definition:
StringValue.php:9
src
BackgroundTasks
Implementation
Values
ScalarValues
StringValue.php
Generated on Sat Jan 18 2025 19:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)