ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
26class 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:31
group(string $title, array $items)
Definition: Factory.php:38
Common interface to item groups.
Definition: Group.php:30
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:29