示例#1
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(1, 2));
     $this->setStart(0);
     $this->setEnd(-2);
 }
示例#2
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(6, 5, 4, 3, 2, 1));
     $this->setStart(1);
     $this->setEnd(6);
 }
示例#3
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(2, 3, 4, 5, 6, 0, 0, 7));
     $this->setStart(-2);
     $this->setEnd(1);
 }
示例#4
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setChecknumberPosition(-3);
     $this->setStart(-4);
     $this->setEnd(1);
 }
示例#5
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(2, 1));
     $this->setChecknumberPosition(7);
     $this->setStart(6);
     $this->setEnd(1);
 }
示例#6
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(2, 4, 8, 5, 10, 9, 7, 3, 6, 1, 2, 4));
     $this->setStart(-1);
     $this->setEnd(0);
     $this->setChecknumberPosition(5);
     $this->validator20 = new Validator20($bank);
 }
示例#7
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(2, 1));
     /*
      * The specification is not clear about 4 or 3.
      * see https://github.com/malkusch/bav/issues/14
      */
     $this->setEnd(3);
 }
示例#8
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(2, 3, 4, 5, 6, 7));
 }
示例#9
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(2, 4, 8, 5, 10, 0, 0, 0, 0));
     $this->setDivisor(11);
 }
示例#10
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(2, 1));
     $this->setDivisor(10);
 }
示例#11
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setStart(-1);
     $this->setEnd(5);
 }
示例#12
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(3, 7, 1));
 }
示例#13
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(9, 8, 7, 6, 5, 4, 3, 2, 1));
 }
示例#14
0
 public function __construct(Bank $bank)
 {
     parent::__construct($bank);
     $this->setWeights(array(1, 2, 3, 4, 5, 6, 11, 10, 9));
     $this->setDivisor(11);
 }