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

/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */
class Pruefziffer_78 implements IPruefziffer
{
  public static function check($pKtoNr, $pBlz, $pGewichtung = array(), $pPruefZifferStelle = 9)
  {
    if (strlen((string)($pKtoNr * 1)) == 8) {
      return true;
    } else {
      $gewichtung = array(0, 2, 1, 2, 1, 2, 1, 2, 1, 2);

      return Pruefziffer_00::check($pKtoNr, $pBlz, $gewichtung, $pPruefZifferStelle);
    }
  }
}