ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
Field.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Data\Description
;
22
23
class
Field
24
{
28
public
function
__construct
(
29
protected
string
$name,
30
protected
Description
$type,
31
) {
32
if
(preg_match(
"/^[a-zA-Z](\w|_)+$/"
, $this->name) !== 1) {
33
throw
new \InvalidArgumentException(
"Expected name to match [a-zA-Z](\w|_)+, got \"$name\""
);
34
}
35
}
36
37
public
function
getName
(): string
38
{
39
return
$this->name;
40
}
41
42
public
function
getType
():
Description
43
{
44
return
$this->type;
45
}
46
}
ILIAS\Data\Description\Description
This describes some datastructure in terms of standard data structures such as primitives,...
Definition:
Description.php:33
ILIAS\Data\Description\Field
Definition:
Field.php:24
ILIAS\Data\Description\Field\getType
getType()
Definition:
Field.php:42
ILIAS\Data\Description\Field\__construct
__construct(protected string $name, protected Description $type,)
Definition:
Field.php:28
ILIAS\Data\Description\Field\getName
getName()
Definition:
Field.php:37
ILIAS\Data\Description
Definition:
Description.php:21
components
ILIAS
Data
src
Description
Field.php
Generated on Sun Oct 19 2025 23:02:19 for ILIAS by
1.9.4 (using
Doxyfile
)