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

namespace Kufer\Web\Classes\Ampel\Renderer;

class Ampel7RendererText implements AmpelRenderer
{
  public function create(int $status): string
  {
    if ($status < 0 || $status > 6) {
      return '';
    }
    $settings = \ToolSettingsAPI::getToolSettings(4);
    $status = $status + 1;

    
    return '<span class="kw_ampel status' . \CleanOperations::cleanInt($status) . '">' . \CleanOperations::cleanStringForHtml($settings->{'optionstatustext' . $status}) . '</span>';
  }
}