Exemplo n.º 1
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->mode1 = new Validator00($bank);
     $this->mode2 = new Validator00($bank);
     $this->mode2->setStart(-3);
     $this->mode2->setChecknumberPosition(-2);
 }
Exemplo n.º 2
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->validator09 = new Validator09($bank);
     $this->mode1 = new Validator00($bank);
     $this->mode1->setWeights(array(1, 2));
     $this->mode1->setStart(0);
     $this->mode1->setEnd(-2);
     $this->mode2 = new Validator00($bank);
     $this->mode2->setWeights(array(1, 2, 0, 1, 2, 1, 2, 1, 2, 1));
     $this->mode2->setChecknumberPosition(2);
     $this->mode2->setStart(0);
     $this->mode2->setEnd(-1);
     $this->modeMap = array(51 => 1, 55 => 1, 61 => 1, 64 => 1, 65 => 1, 66 => 1, 70 => 1, 88 => 1, 94 => 1, 95 => 1, 52 => 2, 53 => 2, 54 => 2, 62 => 2, 63 => 2, 67 => 2, 68 => 2, 69 => 2, 71 => 2, 72 => 2, 89 => 2, 90 => 2, 92 => 2, 93 => 2, 96 => 2, 97 => 2, 98 => 2, 40 => 3, 50 => 3, 91 => 3, 99 => 3);
 }