private function createRatingList($maxRate) { $ratings = []; for ($i = 1; $i <= $maxRate; ++$i) { $ratings[$i] = $i; } return $ratings; }