Esempio n. 1
0
 private static function createFromDb($venue_id, $resource)
 {
     if (!is_null($resource)) {
         $venue = new Venue();
         $venue->setVenueId($venue_id);
         $venue->setVenueName($resource["name"]);
         $venue->setVenueDefaultHour($resource["default-hour"]);
         $venue->setMaxPlayers($resource["max-players"]);
         $venue->setMinPlayers($resource["min-players"]);
         return $venue;
     }
     return null;
 }