ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
26 class Factory implements Item\Factory
27 {
28  public function standard($title): Standard
29  {
30  return new Standard($title);
31  }
32 
33  public function shy(string $title): Shy
34  {
35  return new Shy($title);
36  }
37 
38  public function group(string $title, array $items): Group
39  {
40  return new Group($title, $items);
41  }
42 
43  public function notification($title, Icon $icon): Notification
44  {
45  return new Notification($title, $icon);
46  }
47 }
Builds a Color from either hex- or rgb values.
Definition: Factory.php:30
group(string $title, array $items)
Definition: Factory.php:38