ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
Factory.php
Go to the documentation of this file.
1 <?php
2 
18 declare(strict_types=1);
19 
21 
25 class Factory
26 {
27  public function userDefined(string $key, string $value): Tag
28  {
29  return new UserDefined($key, $value);
30  }
31 
35  public function collection(array $tags): TagCollection
36  {
37  return new TagCollection(...$tags);
38  }
39 
40  public function nullTag(): Tag
41  {
42  return new NullTag();
43  }
44 }
userDefined(string $key, string $value)
Definition: Factory.php:27