ILIAS  trunk Revision v11.0_alpha-2658-ge2404539063
ILIAS\Data\Description\Field Class Reference
+ Collaboration diagram for ILIAS\Data\Description\Field:

Public Member Functions

 __construct (protected string $name, protected Description $type,)
 
 getName ()
 
 getType ()
 

Detailed Description

Definition at line 23 of file Field.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\Description\Field::__construct ( protected string  $name,
protected Description  $type 
)
Parameters
string$nameneeds to match [a-zA-Z](|_)+

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  }

Member Function Documentation

◆ 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.

42  : Description
43  {
44  return $this->type;
45  }

The documentation for this class was generated from the following file: