ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Set.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class Set implements SetInterface
24 {
25  protected string $title;
26 
30  protected array $fields;
31 
32  public function __construct(
33  string $title,
34  FieldInterface ...$fields
35  ) {
36  $this->title = $title;
37  $this->fields = $fields;
38  }
39 
40  public function presentableTitle(): string
41  {
42  return $this->title;
43  }
44 
48  public function fields(): array
49  {
50  return $this->fields;
51  }
52 }
__construct(string $title, FieldInterface ... $fields)
Definition: Set.php:32