<?php
namespace App\Entity\Airline;
use App\Entity\Airline;
use App\Repository\Airline\TariffRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TariffRepository::class)
* @ORM\Table(name="airline_tariff")
*/
class Tariff
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Airline::class, inversedBy="tariffs")
* @ORM\JoinColumn(nullable=false)
*/
private $airline;
/**
* @ORM\Column(type="float")
*/
private $minKG;
/**
* @ORM\Column(type="float")
*/
private $maxKG;
/**
* @ORM\Column(type="float")
*/
private $price;
public function getId(): ?int
{
return $this->id;
}
public function getAirline(): ?Airline
{
return $this->airline;
}
public function setAirline(?Airline $airline): self
{
$this->airline = $airline;
return $this;
}
public function getMinKG(): ?float
{
return $this->minKG;
}
public function setMinKG(float $minKG): self
{
$this->minKG = $minKG;
return $this;
}
public function getMaxKG(): ?float
{
return $this->maxKG;
}
public function setMaxKG(float $maxKG): self
{
$this->maxKG = $maxKG;
return $this;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(float $price): self
{
$this->price = $price;
return $this;
}
}