mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-03-01 12:50:30 -05:00
15 lines
343 B
PHP
15 lines
343 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Director\PropertyModifier;
|
|
|
|
use Icinga\Module\Director\Web\Hook\PropertyModifierHook;
|
|
|
|
class PropertyModifierSubstring extends PropertyModifierHook
|
|
{
|
|
|
|
public function transform($value)
|
|
{
|
|
return substr($value, $this->settings['start'], $this->settings['end'] - $this->settings['start']);
|
|
}
|
|
|
|
}
|