ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
Factory.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ILIAS\Data\UUID;
4 
5 use Exception;
7 
14 class Factory
15 {
16 
17 
21  private $uuid_factory;
22 
26  public function __construct()
27  {
28  $this->uuid_factory = new UuidFactory();
29  }
30 
35  public function uuid4() : Uuid
36  {
37  return new RamseyUuidWrapper($this->uuid_factory->uuid4());
38  }
39 
44  public function uuid4AsString() : string
45  {
46  return $this->uuid4()->toString();
47  }
48 }
__construct()
Factory constructor.
Definition: Factory.php:26