src/Entity/Opportunities.php

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\OpportunitiesRepository")
  9.  */
  10. class Opportunities extends OSEntity
  11. {
  12.     /**
  13.      * Constructor
  14.      */
  15.     public function __construct(){
  16.         $this->openingDate = new \DateTime;
  17.         $this->closingDate = new \DateTime;
  18.     }
  19.     /**
  20.      * @ORM\Column(type="datetime", nullable=true)
  21.      */
  22.     private $openingDate;
  23.     /**
  24.      * @ORM\Column(type="datetime", nullable=true)
  25.      */
  26.     private $closingDate;
  27.     /**
  28.      * @var string|null
  29.      *
  30.      * @ORM\Column(name="structure", type="string", length=255, nullable=true)
  31.      */
  32.     private $structure;
  33.     /**
  34.      * @var string|null
  35.      *
  36.      * @ORM\Column(name="place", type="string", length=255, nullable=true)
  37.      */
  38.     private $place;
  39.     /**
  40.      * @ORM\OneToOne(targetEntity="App\Entity\Biblios", cascade={"persist","remove"}, orphanRemoval=true, fetch="EAGER")
  41.      * @ORM\JoinColumn(nullable=true)
  42.      */
  43.     private $biblio;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity="App\Entity\OpportunitiesCategories", fetch="EAGER")
  46.      * @ORM\JoinColumn(nullable=true)
  47.      */
  48.     private $category;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity=OpportunitiesTypes::class)
  51.      */
  52.     private $type;
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      */
  56.     private $submissionLink;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $submissionBtnTitle;
  61.     public function getOpeningDate(): ?\DateTimeInterface
  62.     {
  63.         return $this->openingDate;
  64.     }
  65.     public function setOpeningDate(?\DateTimeInterface $openingDate): self
  66.     {
  67.         $this->openingDate $openingDate;
  68.         return $this;
  69.     }
  70.     public function getClosingDate(): ?\DateTimeInterface
  71.     {
  72.         return $this->closingDate;
  73.     }
  74.     public function setClosingDate(?\DateTimeInterface $closingDate): self
  75.     {
  76.         $this->closingDate $closingDate;
  77.         return $this;
  78.     }
  79.     /**
  80.      * @return Opportunities
  81.      */
  82.     public function setStructure($structure null)
  83.     {
  84.         $this->structure $structure;
  85.         return $this;
  86.     }
  87.     /**
  88.      * @return string|null
  89.      */
  90.     public function getStructure()
  91.     {
  92.         return $this->structure;
  93.     }
  94.     public function getBiblio(): ?Biblios
  95.     {
  96.         return $this->biblio;
  97.     }
  98.     public function setBiblio(?Biblios $biblio): self
  99.     {
  100.         $this->biblio $biblio;
  101.         return $this;
  102.     }
  103.     /**
  104.      * Set place.
  105.      *
  106.      * @param string|null $place
  107.      *
  108.      * @return Opportunities
  109.      */
  110.     public function setPlace($place null)
  111.     {
  112.         $this->place $place;
  113.         return $this;
  114.     }
  115.     /**
  116.      * @return string|null
  117.      */
  118.     public function getPlace()
  119.     {
  120.         return $this->place;
  121.     }
  122.     public function getCategory(): ?OpportunitiesCategories
  123.     {
  124.         return $this->category;
  125.     }
  126.     public function setCategory(?OpportunitiesCategories $category): self
  127.     {
  128.         $this->category $category;
  129.         return $this;
  130.     }
  131.     public function getType(): ?OpportunitiesTypes
  132.     {
  133.         return $this->type;
  134.     }
  135.     public function setType(?OpportunitiesTypes $type): self
  136.     {
  137.         $this->type $type;
  138.         return $this;
  139.     }
  140.     public function getSubmissionLink(): ?string
  141.     {
  142.         return $this->submissionLink;
  143.     }
  144.     public function setSubmissionLink(?string $submissionLink): self
  145.     {
  146.         $this->submissionLink $submissionLink;
  147.         return $this;
  148.     }
  149.     public function getSubmissionBtnTitle(): ?string
  150.     {
  151.         return $this->submissionBtnTitle;
  152.     }
  153.     public function setSubmissionBtnTitle(?string $submissionBtnTitle): self
  154.     {
  155.         $this->submissionBtnTitle $submissionBtnTitle;
  156.         return $this;
  157.     }
  158. }