<?php
namespace App\Entity;
use App\Repository\ProjectVersionRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProjectVersionRepository::class)
*/
class ProjectVersion
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Project::class, inversedBy="projectVersions")
* @ORM\JoinColumn(nullable=false)
*/
private $project;
/**
* @ORM\Column(type="string", length=255)
*/
private $version;
/**
* @ORM\Column(type="text")
*/
private $description;
/**
* @ORM\Column(type="date")
*/
private $released_date;
/**
* @ORM\ManyToOne(targetEntity=User::class)
* @ORM\JoinColumn(nullable=false)
*/
private $created_by;
/**
* @ORM\Column(type="datetime")
*/
private $created_at;
public function getId(): ?int
{
return $this->id;
}
public function getProject(): ?Project
{
return $this->project;
}
public function setProject(?Project $project): self
{
$this->project = $project;
return $this;
}
public function getVersion(): ?string
{
return $this->version;
}
public function setVersion(string $version): self
{
$this->version = $version;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getReleasedDate(): ?\DateTimeInterface
{
return $this->released_date;
}
public function setReleasedDate(\DateTimeInterface $released_date): self
{
$this->released_date = $released_date;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->created_by;
}
public function setCreatedBy(?User $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeInterface $created_at): self
{
$this->created_at = $created_at;
return $this;
}
}