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); } }
protected function init($account) { parent::init($account); $this->account = preg_replace('~^([3456]|9..)?0*~', '', $this->account); }