private function createBooking(BookingType $bookingType, $label, $value) { $booking = new Booking(); return $booking->setBookingType($bookingType)->setLabel($label)->setValue($value); }
/** * @param Booking $booking The booking object to add. */ protected function doAddBooking($booking) { $this->collBookings[] = $booking; $booking->setBookingType($this); }