<?php
namespace AdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'booking_booking_extra')]
#[ORM\Entity]
class BookingBookingExtra
{
/**
* @var integer
*/
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
protected $id;
#[ORM\JoinColumn(name: 'booking_id', referencedColumnName: 'id')]
#[ORM\ManyToOne(targetEntity: \Booking::class, inversedBy: 'extras')]
protected $booking;
#[ORM\JoinColumn(name: 'booking_request_id', referencedColumnName: 'id', onDelete: 'SET NULL', nullable: true)]
#[ORM\ManyToOne(targetEntity: \BookingRequest::class, inversedBy: 'extras')]
protected $bookingRequest;
#[ORM\JoinColumn(name: 'booking_extra_id', referencedColumnName: 'id')]
#[ORM\ManyToOne(targetEntity: \BookingExtra::class, inversedBy: 'bookingBookingExtras')]
protected $bookingExtra;
/**
* @var string
*/
#[ORM\Column(name: 'value', type: 'float', nullable: true)]
protected $value;
public function __construct(BookingExtra $bookingExtra)
{
$this->bookingExtra = $bookingExtra;
}
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @param int $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getBooking()
{
return $this->booking;
}
/**
* @param mixed $booking
*/
public function setBooking($booking)
{
$this->booking = $booking;
}
/**
* @return mixed
*/
public function getBookingExtra()
{
return $this->bookingExtra;
}
/**
* @param mixed $bookingExtra
*/
public function setBookingExtra($bookingExtra)
{
$this->bookingExtra = $bookingExtra;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return mixed
*/
public function getBookingRequest()
{
return $this->booking;
}
/**
* @param mixed $bookingRequest
*/
public function setBookingRequest($bookingRequest)
{
$this->bookingRequest = $bookingRequest;
}
}