ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Definition.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
27 protected string $name;
28 protected bool $unique;
29 protected Type $data_type;
30
31 public function __construct(
32 string $name,
33 bool $unique,
35 ) {
36 $this->name = $name;
37 $this->unique = $unique;
38 $this->data_type = $data_type;
39 }
40
41 public function name(): string
42 {
43 return $this->name;
44 }
45
46 public function unique(): bool
47 {
48 return $this->unique;
49 }
50
51 public function dataType(): Type
52 {
53 return $this->data_type;
54 }
55}
unique()
Unique elements can only occur once at their position in the metadata set.
Definition: Definition.php:46
dataType()
Type of data this element can carry.
Definition: Definition.php:51
__construct(string $name, bool $unique, Type $data_type)
Definition: Definition.php:31
name()
Name of the metadata element.
Definition: Definition.php:41