src/Entity/CustomerAdvertisingArea.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomerAdvertisingAreaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. #[ORM\Entity(repositoryClassCustomerAdvertisingAreaRepository::class)]
  7. class CustomerAdvertisingArea
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(type'uuid'uniquetrue)]
  14.     private ?string $uuid;
  15.     #[ORM\Column(type'string'length255)]
  16.     private ?string $name null;
  17.     #[ORM\Column(type'integer'length11)]
  18.     private ?int $sortingIndex null;
  19.     #[ORM\Column(type'float'length11)]
  20.     private ?float $price null;
  21.     #[ORM\Column]
  22.     private ?float $setupPriceUnit null;
  23.     #[ORM\Column]
  24.     private bool $withinSetupPrice true;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?int $minDuration null;
  27.     #[ORM\ManyToOne(targetEntity'App\Entity\Customer'cascade: ['persist'])]
  28.     #[ORM\JoinColumn(name'fk_customer'nullablefalse)]
  29.     private ?Customer $customer null;
  30.     #[ORM\ManyToOne(targetEntity'App\Entity\AdvertisingAreaTier'fetch'EAGER')]
  31.     #[ORM\JoinColumn(name'fk_advertising_area_tier'nullablefalse)]
  32.     private ?AdvertisingAreaTier $advertisingAreaTier null;
  33.     #[ORM\ManyToOne(targetEntity'App\Entity\AdvertisingAreaTierPosition'fetch'EAGER')]
  34.     #[ORM\JoinColumn(name'fk_advertising_area_tier_position'nullablefalse)]
  35.     private ?AdvertisingAreaTierPosition $advertisingAreaTierPosition null;
  36.     #[ORM\ManyToOne(
  37.         targetEntity'App\Entity\CustomerAdvertisingAreaTierPosition',
  38.         cascade: ['persist'],
  39.         inversedBy'customerAdvertisingAreas'
  40.     )]
  41.     #[ORM\JoinColumn(name'fk_customer_advertising_area_tier_position'nullablefalse)]
  42.     private ?CustomerAdvertisingAreaTierPosition $customerAdvertisingAreaTierPosition;
  43.     #[ORM\ManyToOne(targetEntity'App\Entity\CustomerAdvertisingAreaTierSettings'cascade: ['persist'])]
  44.     #[ORM\JoinColumn(name'fk_advertising_area_tier_settings'nullablefalse)]
  45.     private ?CustomerAdvertisingAreaTierSettings $settings;
  46.     #[ORM\ManyToOne(targetEntityAdvertisingAreaStatus::class)]
  47.     #[ORM\JoinColumn(name'fk_advertising_area_status'nullablefalse)]
  48.     private AdvertisingAreaStatus $status;
  49.     #[ORM\ManyToOne(cascade: ['persist'], inversedBy'areas')]
  50.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  51.     private ?Sponsor $sponsor null;
  52.     #[ORM\ManyToOne(targetEntityContract::class, cascade: ['persist''remove'], inversedBy'areas')]
  53.     #[ORM\JoinColumn(name'fk_contract'nullabletrue)]
  54.     private ?Contract $contract null;
  55.     public function getId(): ?int
  56.     {
  57.         return $this->id;
  58.     }
  59.     public function getName(): ?string
  60.     {
  61.         return $this->name;
  62.     }
  63.     public function setName(string $name): self
  64.     {
  65.         $this->name $name;
  66.         return $this;
  67.     }
  68.     public function getSortingIndex(): ?int
  69.     {
  70.         return $this->sortingIndex;
  71.     }
  72.     public function setSortingIndex(int $sortingIndex): self
  73.     {
  74.         $this->sortingIndex $sortingIndex;
  75.         return $this;
  76.     }
  77.     public function getCustomer(): ?Customer
  78.     {
  79.         return $this->customer;
  80.     }
  81.     public function setCustomer(?Customer $customer): self
  82.     {
  83.         $this->customer $customer;
  84.         return $this;
  85.     }
  86.     public function getCustomerAdvertisingAreaTierPosition(): ?CustomerAdvertisingAreaTierPosition
  87.     {
  88.         return $this->customerAdvertisingAreaTierPosition;
  89.     }
  90.     public function setCustomerAdvertisingAreaTierPosition(
  91.         ?CustomerAdvertisingAreaTierPosition $customerAdvertisingAreaTierPosition
  92.     ): self {
  93.         $this->customerAdvertisingAreaTierPosition $customerAdvertisingAreaTierPosition;
  94.         return $this;
  95.     }
  96.     public function getPrice(): ?float
  97.     {
  98.         return $this->price;
  99.     }
  100.     public function setPrice(float $price): self
  101.     {
  102.         $this->price $price;
  103.         return $this;
  104.     }
  105.     public function getSettings(): ?CustomerAdvertisingAreaTierSettings
  106.     {
  107.         return $this->settings;
  108.     }
  109.     public function setSettings(
  110.         ?CustomerAdvertisingAreaTierSettings $customerAdvertisingAreaTierSettings
  111.     ): self {
  112.         $this->settings $customerAdvertisingAreaTierSettings;
  113.         return $this;
  114.     }
  115.     public function getSponsor(): ?Sponsor
  116.     {
  117.         return $this->sponsor;
  118.     }
  119.     public function setSponsor(?Sponsor $sponsor): self
  120.     {
  121.         $this->sponsor $sponsor;
  122.         return $this;
  123.     }
  124.     public function getContract(): ?Contract
  125.     {
  126.         return $this->contract;
  127.     }
  128.     public function setContract(?Contract $contract): self
  129.     {
  130.         $this->contract $contract;
  131.         return $this;
  132.     }
  133.     public function getStatus(): ?AdvertisingAreaStatus
  134.     {
  135.         return $this->status;
  136.     }
  137.     public function setStatus(?AdvertisingAreaStatus $status): self
  138.     {
  139.         $this->status $status;
  140.         return $this;
  141.     }
  142.     public function getMinDuration(): ?int
  143.     {
  144.         return $this->minDuration;
  145.     }
  146.     public function setMinDuration(?int $minDuration): self
  147.     {
  148.         $this->minDuration $minDuration;
  149.         return $this;
  150.     }
  151.     public function getSetupPriceUnit(): ?float
  152.     {
  153.         return $this->setupPriceUnit;
  154.     }
  155.     public function setSetupPriceUnit(float $setupPriceUnit): self
  156.     {
  157.         $this->setupPriceUnit $setupPriceUnit;
  158.         return $this;
  159.     }
  160.     public function getUuid()
  161.     {
  162.         return $this->uuid;
  163.     }
  164.     public function setUuid($uuid): self
  165.     {
  166.         $this->uuid $uuid;
  167.         return $this;
  168.     }
  169.     public function isWithinSetupPrice(): ?bool
  170.     {
  171.         return $this->withinSetupPrice;
  172.     }
  173.     public function setWithinSetupPrice(bool $withinSetupPrice): self
  174.     {
  175.         $this->withinSetupPrice $withinSetupPrice;
  176.         return $this;
  177.     }
  178.     public function getAdvertisingAreaTier(): ?AdvertisingAreaTier
  179.     {
  180.         return $this->advertisingAreaTier;
  181.     }
  182.     public function setAdvertisingAreaTier(?AdvertisingAreaTier $advertisingAreaTier): self
  183.     {
  184.         $this->advertisingAreaTier $advertisingAreaTier;
  185.         return $this;
  186.     }
  187.     public function getAdvertisingAreaTierPosition(): ?AdvertisingAreaTierPosition
  188.     {
  189.         return $this->advertisingAreaTierPosition;
  190.     }
  191.     public function setAdvertisingAreaTierPosition(?AdvertisingAreaTierPosition $advertisingAreaTierPosition): self
  192.     {
  193.         $this->advertisingAreaTierPosition $advertisingAreaTierPosition;
  194.         return $this;
  195.     }
  196. }