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

namespace Kufer\KuferTools\Utils\WssField;

class WssFieldAllgemeinIban extends WssField
{
  public function getValueFromPost(string $requestPrefix = '')
  {
    $iban = parent::getValueFromPost($requestPrefix);

    return str_replace(' ', '', $iban); 
  }

  public function getDefaultMaxLength(): ?int
  {
    return 35;
  }
}