Ejemplo n.º 1
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->mode1 = new Validator00($bank);
     $this->mode1->setWeights(array(2, 1));
     $this->mode2 = new Validator02($bank);
     $this->mode2->setWeights(array(2, 3, 4, 5, 6, 7, 8, 9, 10));
 }
Ejemplo n.º 2
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(2, 3, 4, 5, 6, 7));
     $this->setStart(-2);
     $this->setEnd(3);
 }
Ejemplo n.º 3
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(2, 3, 4, 5, 6, 7, 8, 9, 10));
 }
Ejemplo n.º 4
0
 public function isValid($account)
 {
     return strlen(ltrim($account, "0")) >= 6 && parent::isValid($account);
 }