src/Entity/Offer/OfferCompany.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Offer;
  3. use App\Entity\File;
  4. use App\Entity\InvoiceData;
  5. use App\Entity\Traits\IdTrait;
  6. use App\Entity\Traits\TimeStampAbleTrait;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Entity(repositoryClass=OfferCompanyRepository::class)
  10.  * @ORM\HasLifecycleCallbacks
  11.  */
  12. class OfferCompany
  13. {
  14.     use IdTrait;
  15.     use TimeStampAbleTrait;
  16.     /**
  17.      * @ORM\Column (type="string", length=255, nullable=true)
  18.      */
  19.     private ?string $phoneNumber;
  20.     /**
  21.      * @ORM\Column (type="string", length=255, nullable=true)
  22.      */
  23.     private ?string $websiteUrl;
  24.     /**
  25.      * @ORM\Column (type="string", length=255, nullable=true)
  26.      */
  27.     private ?string $numberOfEmployers;
  28.     /**
  29.      * @ORM\Column (type="text", nullable=true)
  30.      */
  31.     private ?string $description;
  32.     /**
  33.      * @ORM\Column(type="boolean", nullable=true)
  34.      */
  35.     private ?bool $isExtraInvoiceData;
  36.     /**
  37.      * @ORM\ManyToOne (targetEntity=InvoiceData::class)
  38.      */
  39.     private ?InvoiceData $invoiceData;
  40.     /**
  41.      * @ORM\ManyToOne (targetEntity=InvoiceData::class)
  42.      */
  43.     private ?InvoiceData $extraInvoiceData;
  44.     /**
  45.      * @ORM\ManyToOne (targetEntity=File::class)
  46.      */
  47.     private ?File $logo = null;
  48.     /**
  49.      * @ORM\Column(type="boolean", nullable=true)
  50.      */
  51.     private $isExternalApplications;
  52.     /**
  53.      * @ORM\Column(type="string", length=255, nullable=true)
  54.      */
  55.     private $sourceForTheExternalApplication;
  56.     public function __clone()
  57.     {
  58.         $this->id               = null;
  59.         $this->invoiceData      = null;
  60.         $this->extraInvoiceData = null;
  61.         $this->logo             = null;
  62.     }
  63.     public function cloneObject(?InvoiceData $invoiceData, ?InvoiceData $extraInvoiceData, ?File $logo): self
  64.     {
  65.         $clone = clone $this;
  66.         $clone->invoiceData      = $invoiceData;
  67.         $clone->extraInvoiceData = $extraInvoiceData;
  68.         $clone->logo             = $logo;
  69.         return $clone;
  70.     }
  71.     /**
  72.      * @return string|null
  73.      */
  74.     public function getPhoneNumber(): ?string
  75.     {
  76.         return $this->phoneNumber;
  77.     }
  78.     /**
  79.      * @param string|null $phoneNumber
  80.      */
  81.     public function setPhoneNumber(?string $phoneNumber): self
  82.     {
  83.         $this->phoneNumber = $phoneNumber;
  84.         return $this;
  85.     }
  86.     /**
  87.      * @return string|null
  88.      */
  89.     public function getWebsiteUrl(): ?string
  90.     {
  91.         return $this->websiteUrl;
  92.     }
  93.     /**
  94.      * @param string|null $websiteUrl
  95.      */
  96.     public function setWebsiteUrl(?string $websiteUrl): self
  97.     {
  98.         $this->websiteUrl = $websiteUrl;
  99.         return $this;
  100.     }
  101.     /**
  102.      * @return string|null
  103.      */
  104.     public function getNumberOfEmployers(): ?string
  105.     {
  106.         return $this->numberOfEmployers;
  107.     }
  108.     /**
  109.      * @param string|null $numberOfEmployers
  110.      */
  111.     public function setNumberOfEmployers(?string $numberOfEmployers): self
  112.     {
  113.         $this->numberOfEmployers = $numberOfEmployers;
  114.         return $this;
  115.     }
  116.     /**
  117.      * @return string|null
  118.      */
  119.     public function getDescription(): ?string
  120.     {
  121.         return $this->description;
  122.     }
  123.     /**
  124.      * @param string|null $description
  125.      */
  126.     public function setDescription(?string $description): self
  127.     {
  128.         $this->description = $description;
  129.         return $this;
  130.     }
  131.     /**
  132.      * @return bool|null
  133.      */
  134.     public function getIsExtraInvoiceData(): ?bool
  135.     {
  136.         return $this->isExtraInvoiceData;
  137.     }
  138.     /**
  139.      * @param bool|null $isExtraInvoiceData
  140.      */
  141.     public function setIsExtraInvoiceData(?bool $isExtraInvoiceData): self
  142.     {
  143.         $this->isExtraInvoiceData = $isExtraInvoiceData;
  144.         return $this;
  145.     }
  146.     /**
  147.      * @return InvoiceData|null
  148.      */
  149.     public function getInvoiceData(): ?InvoiceData
  150.     {
  151.         return $this->invoiceData;
  152.     }
  153.     /**
  154.      * @param InvoiceData|null $invoiceData
  155.      */
  156.     public function setInvoiceData(?InvoiceData $invoiceData): self
  157.     {
  158.         $this->invoiceData = $invoiceData;
  159.         return $this;
  160.     }
  161.     /**
  162.      * @return InvoiceData|null
  163.      */
  164.     public function getExtraInvoiceData(): ?InvoiceData
  165.     {
  166.         return $this->extraInvoiceData;
  167.     }
  168.     /**
  169.      * @param InvoiceData|null $extraInvoiceData
  170.      */
  171.     public function setExtraInvoiceData(?InvoiceData $extraInvoiceData): self
  172.     {
  173.         $this->extraInvoiceData = $extraInvoiceData;
  174.         return $this;
  175.     }
  176.     /**
  177.      * @return File|null
  178.      */
  179.     public function getLogo(): ?File
  180.     {
  181.         return $this->logo;
  182.     }
  183.     /**
  184.      * @param File|null $logo
  185.      */
  186.     public function setLogo(?File $logo): self
  187.     {
  188.         $this->logo = $logo;
  189.         return $this;
  190.     }
  191.     public function getIsExternalApplications(): ?bool
  192.     {
  193.         return $this->isExternalApplications;
  194.     }
  195.     public function setIsExternalApplications(?bool $isExternalApplications): self
  196.     {
  197.         $this->isExternalApplications = $isExternalApplications;
  198.         return $this;
  199.     }
  200.     public function getSourceForTheExternalApplication(): ?string
  201.     {
  202.         return $this->sourceForTheExternalApplication;
  203.     }
  204.     public function setSourceForTheExternalApplication(?string $sourceForTheExternalApplication): self
  205.     {
  206.         $this->sourceForTheExternalApplication = $sourceForTheExternalApplication;
  207.         return $this;
  208.     }
  209. }