ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 class Factory
27 {
28  public function userDefined(string $key, string $value): Tag
29  {
30  return new UserDefined($key, $value);
31  }
32 
36  public function collection(array $tags): TagCollection
37  {
38  return new TagCollection(...$tags);
39  }
40 
41  public function nullTag(): Tag
42  {
43  return new NullTag();
44  }
45 }
userDefined(string $key, string $value)
Definition: Factory.php:28