src/Entity/ProjectSponsor.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectSponsorRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProjectSponsorRepository::class)
  7.  */
  8. class ProjectSponsor
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Project::class, inversedBy="projectSponsors")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $project;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=User::class)
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $created_by;
  26.     /**
  27.      * @ORM\Column(type="datetime")
  28.      */
  29.     private $created_at;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=Organization::class)
  32.      * @ORM\JoinColumn(nullable=false)
  33.      */
  34.     private $organization;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity=SponsorshipType::class)
  37.      * @ORM\JoinColumn(nullable=false)
  38.      */
  39.     private $type;
  40.     /**
  41.      * @ORM\Column(type="text")
  42.      */
  43.     private $additional_info;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getProject(): ?Project
  49.     {
  50.         return $this->project;
  51.     }
  52.     public function setProject(?Project $project): self
  53.     {
  54.         $this->project $project;
  55.         return $this;
  56.     }
  57.     public function getCreatedBy(): ?User
  58.     {
  59.         return $this->created_by;
  60.     }
  61.     public function setCreatedBy(?User $created_by): self
  62.     {
  63.         $this->created_by $created_by;
  64.         return $this;
  65.     }
  66.     public function getCreatedAt(): ?\DateTimeInterface
  67.     {
  68.         return $this->created_at;
  69.     }
  70.     public function setCreatedAt(\DateTimeInterface $created_at): self
  71.     {
  72.         $this->created_at $created_at;
  73.         return $this;
  74.     }
  75.     public function getOrganization(): ?Organization
  76.     {
  77.         return $this->organization;
  78.     }
  79.     public function setOrganization(?Organization $organization): self
  80.     {
  81.         $this->organization $organization;
  82.         return $this;
  83.     }
  84.     public function getType(): ?SponsorshipType
  85.     {
  86.         return $this->type;
  87.     }
  88.     public function setType(?SponsorshipType $type): self
  89.     {
  90.         $this->type $type;
  91.         return $this;
  92.     }
  93.     public function getAdditionalInfo(): ?string
  94.     {
  95.         return $this->additional_info;
  96.     }
  97.     public function setAdditionalInfo(string $additional_info): self
  98.     {
  99.         $this->additional_info $additional_info;
  100.         return $this;
  101.     }
  102. }