<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\KuferTools\Utils\WssField;

class WssFieldTeilnehmerDseWiderrufenWeg extends WssField
{
  protected function getValue($datamodulWert, $isFormular = false)
  {
    $combobox = \ComboboxFactory::getComboboxByColumn($this->datamodulColumn, parent::getValue($datamodulWert, $isFormular));
    return $combobox->getSelectedText();
  }

  protected function encodeValue($value)
  {
    return $this->dontEncode($value);
  }
}