18 lines
344 B
PHP
18 lines
344 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Director\PropertyModifier;
|
|
|
|
use Icinga\Module\Director\Hook\PropertyModifierHook;
|
|
|
|
class PropertyModifierUppercase extends PropertyModifierHook
|
|
{
|
|
public function transform($value)
|
|
{
|
|
if ($value === null) {
|
|
return null;
|
|
}
|
|
|
|
return \mb_strtoupper($value, 'UTF-8');
|
|
}
|
|
}
|