Esempio 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 Validator01($bank);
     $this->mode2->setWeights(array(3, 7, 1));
 }
Esempio n. 2
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(3, 9, 7, 1));
 }
Esempio n. 3
0
 protected function getResult()
 {
     return $this->isBetween(1000000, 5999999) || $this->isBetween(700000000, 899999999) ? parent::getResult() : true;
 }