public function votes() { if ($this->main_votes == -1) { $this->rate_vote(); } return $this->main_votes; }