<?phpnamespace AdminBundle\Entity;use Doctrine\ORM\Mapping as ORM;/** * CarTypeAreaPrice */#[ORM\Table(name: 'car_type_area_price')]#[ORM\Entity(repositoryClass: \AdminBundle\Repository\CarTypeAreaPriceRepository::class)]class CarTypeAreaPrice extends BaseEntity{ /** * @var integer */ #[ORM\Column(name: 'id', type: 'integer', nullable: false)] #[ORM\Id] #[ORM\GeneratedValue(strategy: 'IDENTITY')] protected $id; /** * @var \AdminBundle\Entity\CarType */ #[ORM\JoinColumn(name: 'car_type', referencedColumnName: 'id')] #[ORM\ManyToOne(targetEntity: \AdminBundle\Entity\CarType::class)] protected $carType; /** * @var \AdminBundle\Entity\Area */ #[ORM\JoinColumn(name: 'area', referencedColumnName: 'id')] #[ORM\ManyToOne(targetEntity: \AdminBundle\Entity\Area::class)] protected $area; /** * @var \AdminBundle\Entity\PriceThreshold */ #[ORM\JoinColumn(name: 'price_threshold', referencedColumnName: 'id')] #[ORM\ManyToOne(targetEntity: \AdminBundle\Entity\PriceThreshold::class)] protected $priceThreshold; /** * @var float */ #[ORM\Column(name: 'value', type: 'float')] protected $value; /** * @return int */ public function getId() { return $this->id; } /** * @param int $id */ public function setId($id) { $this->id = $id; } /** * @return CarType */ public function getCarType() { return $this->carType; } /** * @param CarType $carType */ public function setCarType($carType) { $this->carType = $carType; } /** * @return PriceThreshold */ public function getPriceThreshold() { return $this->priceThreshold; } /** * @param PriceThreshold $priceThreshold */ public function setPriceThreshold($priceThreshold) { $this->priceThreshold = $priceThreshold; } /** * @return float */ public function getValue() { return $this->value; } /** * @return Area */ public function getArea() { return $this->area; } /** * @param Area $area */ public function setArea($area) { $this->area = $area; } /** * @param float $value */ public function setValue($value) { $this->value = $value; } public function __toString() { return $this->getId() ? (string) $this->getId() : 'n\a'; }}