Пример #1
0
 /**
  * Add parkings
  *
  * @param \Parking $parking
  * @return Site
  */
 public function addParking(Parking $parking)
 {
     $parking->setSite($this);
     $this->parkings[] = $parking;
     return $this;
 }
Пример #2
0
 /**
  * Add parkings
  *
  * @param \Adress $parkings
  * @return ParkingType
  */
 public function addParking(Parking $parkings)
 {
     $parkings->setParkingType($this);
     $this->parkings[] = $parkings;
     return $this;
 }