blob: a1e5d9cede52ad9d9ec04345659846cc053696d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
namespace Icinga\Module\Director\PropertyModifier;
use Icinga\Module\Director\Hook\PropertyModifierHook;
use Ramsey\Uuid\Uuid;
class PropertyModifierUuidBinToHex extends PropertyModifierHook
{
public function getName()
{
return mt('director', 'UUID: from binary to hex');
}
public function transform($value)
{
return Uuid::fromBytes($value)->toString();
}
}
|