Definition at line 23 of file Field.php.
◆ __construct()
ILIAS\Data\Description\Field::__construct |
( |
protected string |
$name, |
|
|
protected Description |
$type |
|
) |
| |
- Parameters
-
string | $name | needs to match [a-zA-Z](\w|_)+ |
Definition at line 28 of file Field.php.
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 }
◆ getName()
ILIAS\Data\Description\Field::getName |
( |
| ) |
|
Definition at line 37 of file Field.php.
37 : string
38 {
39 return $this->name;
40 }
◆ getType()
ILIAS\Data\Description\Field::getType |
( |
| ) |
|
Definition at line 42 of file Field.php.
43 {
44 return $this->type;
45 }
This describes some datastructure in terms of standard data structures such as primitives,...
The documentation for this class was generated from the following file:
- components/ILIAS/Data/src/Description/Field.php