ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Factory.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\Data\UUID
;
4
5
use
Exception
;
6
use
Ramsey\Uuid\UuidFactory
;
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
53
public
function
fromString
(
string
$uuid) :
Uuid
54
{
55
return
new
RamseyUuidWrapper
($this->uuid_factory->fromString($uuid));
56
}
57
}
ILIAS\Data\UUID\Factory\$uuid_factory
$uuid_factory
Definition:
Factory.php:21
ILIAS\Data\UUID
Definition:
Factory.php:3
UuidFactory
ILIAS\Data\UUID\RamseyUuidWrapper
Definition:
RamseyUuidWrapper.php:13
ILIAS\Data\UUID\Factory
Definition:
Factory.php:14
ILIAS\Data\UUID\Uuid
Definition:
Uuid.php:11
ILIAS\Data\UUID\Factory\fromString
fromString(string $uuid)
Definition:
Factory.php:53
ILIAS\Data\UUID\Factory\uuid4AsString
uuid4AsString()
Definition:
Factory.php:44
ILIAS\Data\UUID\Factory\uuid4
uuid4()
Definition:
Factory.php:35
ILIAS\Data\UUID\Factory\__construct
__construct()
Factory constructor.
Definition:
Factory.php:26
Exception
src
Data
UUID
Factory.php
Generated on Tue Sep 2 2025 21:01:41 for ILIAS by
1.8.13 (using
Doxyfile
)