ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Data\UUID\Factory Class Reference
+ Collaboration diagram for ILIAS\Data\UUID\Factory:

Public Member Functions

 __construct ()
 Factory constructor. More...
 
 uuid4 ()
 
 uuid4AsString ()
 
 fromString (string $uuid)
 

Private Attributes

 $uuid_factory
 

Detailed Description

Definition at line 14 of file Factory.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\UUID\Factory::__construct ( )

Factory constructor.

Definition at line 26 of file Factory.php.

27  {
28  $this->uuid_factory = new UuidFactory();
29  }

Member Function Documentation

◆ fromString()

ILIAS\Data\UUID\Factory::fromString ( string  $uuid)
Parameters
string$uuid
Returns
Uuid

Definition at line 53 of file Factory.php.

53  : Uuid
54  {
55  return new RamseyUuidWrapper($this->uuid_factory->fromString($uuid));
56  }

◆ uuid4()

ILIAS\Data\UUID\Factory::uuid4 ( )
Returns
Uuid
Exceptions
Exception

Definition at line 35 of file Factory.php.

Referenced by ILIAS\Data\UUID\Factory\uuid4AsString().

35  : Uuid
36  {
37  return new RamseyUuidWrapper($this->uuid_factory->uuid4());
38  }
+ Here is the caller graph for this function:

◆ uuid4AsString()

ILIAS\Data\UUID\Factory::uuid4AsString ( )
Returns
string
Exceptions
Exception

Definition at line 44 of file Factory.php.

References ILIAS\Data\UUID\Factory\uuid4().

44  : string
45  {
46  return $this->uuid4()->toString();
47  }
+ Here is the call graph for this function:

Field Documentation

◆ $uuid_factory

ILIAS\Data\UUID\Factory::$uuid_factory
private

Definition at line 21 of file Factory.php.


The documentation for this class was generated from the following file: