ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 }
string $key
Consumer key/client ID value.
Definition: System.php:193
userDefined(string $key, string $value)
Definition: Factory.php:27