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)); }
public function __construct(Bank $bank) { parent::__construct($bank); $this->setWeights(array(2, 3, 4, 5, 6, 7)); $this->setStart(-2); $this->setEnd(3); }
public function __construct(Bank $bank) { parent::__construct($bank); $this->setWeights(array(2, 3, 4, 5, 6, 7, 8, 9, 10)); }
public function isValid($account) { return strlen(ltrim($account, "0")) >= 6 && parent::isValid($account); }