protected function getUniqueInteger() { static $int = NULL; if (is_null($this->int)) { return $this->int = mt_rand(1000, 10000); } return $this->int++; }