src/Entity/ProjectVersion.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectVersionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProjectVersionRepository::class)
  7.  */
  8. class ProjectVersion
  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="projectVersions")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $project;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $version;
  25.     /**
  26.      * @ORM\Column(type="text")
  27.      */
  28.     private $description;
  29.     /**
  30.      * @ORM\Column(type="date")
  31.      */
  32.     private $released_date;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=User::class)
  35.      * @ORM\JoinColumn(nullable=false)
  36.      */
  37.     private $created_by;
  38.     /**
  39.      * @ORM\Column(type="datetime")
  40.      */
  41.     private $created_at;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getProject(): ?Project
  47.     {
  48.         return $this->project;
  49.     }
  50.     public function setProject(?Project $project): self
  51.     {
  52.         $this->project $project;
  53.         return $this;
  54.     }
  55.     public function getVersion(): ?string
  56.     {
  57.         return $this->version;
  58.     }
  59.     public function setVersion(string $version): self
  60.     {
  61.         $this->version $version;
  62.         return $this;
  63.     }
  64.     public function getDescription(): ?string
  65.     {
  66.         return $this->description;
  67.     }
  68.     public function setDescription(string $description): self
  69.     {
  70.         $this->description $description;
  71.         return $this;
  72.     }
  73.     public function getReleasedDate(): ?\DateTimeInterface
  74.     {
  75.         return $this->released_date;
  76.     }
  77.     public function setReleasedDate(\DateTimeInterface $released_date): self
  78.     {
  79.         $this->released_date $released_date;
  80.         return $this;
  81.     }
  82.     public function getCreatedBy(): ?User
  83.     {
  84.         return $this->created_by;
  85.     }
  86.     public function setCreatedBy(?User $created_by): self
  87.     {
  88.         $this->created_by $created_by;
  89.         return $this;
  90.     }
  91.     public function getCreatedAt(): ?\DateTimeInterface
  92.     {
  93.         return $this->created_at;
  94.     }
  95.     public function setCreatedAt(\DateTimeInterface $created_at): self
  96.     {
  97.         $this->created_at $created_at;
  98.         return $this;
  99.     }
  100. }