mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-02-18 01:58:00 -05:00
21 lines
470 B
PHP
21 lines
470 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Director\CustomVariable;
|
|
|
|
use Icinga\Module\Director\IcingaConfigHelper as c;
|
|
|
|
class CustomVariableString extends CustomVariable
|
|
{
|
|
public function equals(CustomVariable $var)
|
|
{
|
|
return $var->getValue() === $this->getValue();
|
|
}
|
|
|
|
public function toConfigString()
|
|
{
|
|
return c::renderKeyValue(
|
|
c::escapeIfReserved($this->getKey()),
|
|
c::renderString($this->getValue()
|
|
);
|
|
}
|
|
}
|