ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
Data.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class Data implements DataInterface
24 {
25  protected Type $type;
26  protected string $value;
27 
28  public function __construct(Type $type, string $value)
29  {
30  $this->type = $type;
31  $this->value = $value;
32  }
33 
34  public function type(): Type
35  {
36  return $this->type;
37  }
38 
39  public function value(): string
40  {
41  return $this->value;
42  }
43 }
value()
Value of the data, in a format according to its type.
Definition: Data.php:39
type()
LOM data type.
Definition: Data.php:34
__construct(Type $type, string $value)
Definition: Data.php:28