Пример #1
0
 public function init($account)
 {
     parent::init($account);
     if ($this->account[8] == 8) {
         $this->setWeights(array(2, 1, 2, 1, 2, 1, 2, 0, 1, 2));
         $this->setEnd(-1);
     } else {
         $this->setWeights(array(2, 1));
         $this->setEnd(-4);
     }
 }
Пример #2
0
 protected function init($account)
 {
     parent::init($account);
     $this->account = preg_replace('~^([3456]|9..)?0*~', '', $this->account);
 }