Example #1
0
 /**
  * Create a new SportsVenue object, given the set of initial attribute values.
  * @param name the name of the sports venue
  * @param address the address of the sports venue
  * @param isIndoor is the sports venue an indoor venue?
  * @return a new SportsVenue object instance with the given attribute values
  * @throws RDException in case name is null
  */
 public function createSportsVenue($name = null, $address = null, $isIndoor = null)
 {
     $aSportsVenue = new Entity\SportsVenueImpl();
     // if ($name != null && $address != null && $isIndoor != null) {
     $aSportsVenue->setName($name);
     $aSportsVenue->setAddress($address);
     $aSportsVenue->setIsIndoor($isIndoor);
     //}
     return $aSportsVenue;
 }