<?php
namespace App\Entity;
use App\Repository\CustomerAdvertisingAreaTierSettingsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CustomerAdvertisingAreaTierSettingsRepository::class)]
class CustomerAdvertisingAreaTierSettings
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(nullable: true)]
private ?int $unitWidth = null;
#[ORM\Column(nullable: true)]
private ?int $unitHeight = null;
#[ORM\Column]
private ?int $priceUnit = null;
#[ORM\Column]
private ?int $setupPriceUnit = null;
#[ORM\Column(nullable: true)]
private ?int $minDuration = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(name: 'fk_advertising_area_tier', nullable: false)]
private ?AdvertisingAreaTier $advertisingAreaTier = null;
#[ORM\ManyToOne(targetEntity: 'App\Entity\CustomerPackage', inversedBy: 'customerAdvertisingAreaTierSettings')]
#[ORM\JoinColumn(name: 'fk_customer_package', nullable: false)]
private ?CustomerPackage $customerPackage = null;
#[ORM\Column]
private ?int $tierLength = null;
#[ORM\Column]
private ?int $tierWidth = null;
#[ORM\Column(nullable: true)]
private ?string $description = null;
public function getId(): ?int
{
return $this->id;
}
public function getUnitWidth(): ?int
{
return $this->unitWidth;
}
public function setUnitWidth(?int $unitWidth): self
{
$this->unitWidth = $unitWidth;
return $this;
}
public function getPriceUnit(): ?int
{
return $this->priceUnit;
}
public function setPriceUnit(int $priceUnit): self
{
$this->priceUnit = $priceUnit;
return $this;
}
public function getSetupPriceUnit(): ?int
{
return $this->setupPriceUnit;
}
public function setSetupPriceUnit(int $setupPriceUnit): self
{
$this->setupPriceUnit = $setupPriceUnit;
return $this;
}
public function getMinDuration(): ?int
{
return $this->minDuration;
}
public function setMinDuration(?int $minDuration): self
{
$this->minDuration = $minDuration;
return $this;
}
public function getAdvertisingAreaTier(): ?AdvertisingAreaTier
{
return $this->advertisingAreaTier;
}
public function setAdvertisingAreaTier(?AdvertisingAreaTier $advertisingAreaTier): self
{
$this->advertisingAreaTier = $advertisingAreaTier;
return $this;
}
public function getCustomerPackage(): ?CustomerPackage
{
return $this->customerPackage;
}
public function setCustomerPackage(?CustomerPackage $customerPackage): self
{
$this->customerPackage = $customerPackage;
return $this;
}
public function getUnitHeight(): ?int
{
return $this->unitHeight;
}
public function setUnitHeight(?int $unitHeight): self
{
$this->unitHeight = $unitHeight;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getTierLength(): ?int
{
return $this->tierLength;
}
public function setTierLength(int $tierLength): self
{
$this->tierLength = $tierLength;
return $this;
}
public function getTierWidth(): ?int
{
return $this->tierWidth;
}
public function setTierWidth(int $tierWidth): self
{
$this->tierWidth = $tierWidth;
return $this;
}
}