src/Entity/DeployPackages.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DeployPackagesRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Entity(repositoryClass=DeployPackagesRepository::class)
  10.  */
  11. class DeployPackages
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      * @Groups({"loop-log","deploy"})
  18.      */
  19.     private $id;
  20.     
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $cluster;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $configVersion;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $imageVersion;
  33.     /**
  34.      * @ORM\Column(type="datetime", nullable=true)
  35.      */
  36.     private $deploymentDate;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      * @GROUPS("deploy")
  40.      */
  41.     private $status;
  42.     /**
  43.      * @ORM\Column(type="datetime", nullable=true)
  44.      */
  45.     private $executedAt;
  46.     /**
  47.      * @ORM\Column(type="datetime")
  48.      */
  49.     private $createdAt;
  50.     /**
  51.      * @ORM\Column(type="boolean")
  52.      */
  53.     private $approved;
  54.     /**
  55.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="executedBy")
  56.      */
  57.     private $executedBy;
  58.     /**
  59.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="createdBy")
  60.      */
  61.     private $createdBy;
  62.     /**
  63.      * @ORM\Column(type="string", length=255)
  64.      */
  65.     private $projectName;
  66.     /**
  67.      * @ORM\Column(type="integer")
  68.      */
  69.     private $projectId;
  70.     /**
  71.      * @ORM\Column(type="datetime", nullable=true)
  72.      */
  73.     private $deletedAt;
  74.     /**
  75.      * @ORM\Column(type="string", length=255, nullable=true)
  76.      * @Groups("loop-log")
  77.      */
  78.     private $executionLog;
  79.     /**
  80.      * @ORM\Column(type="datetime", nullable=true)
  81.      */
  82.     private $finishDate;
  83.     /**
  84.      * @ORM\OneToMany(targetEntity=DeployLog::class, mappedBy="package")
  85.      */
  86.     private $logs;
  87.     /**
  88.      * @ORM\Column(type="boolean", nullable=true)
  89.      */
  90.     private $deleted;
  91.     /**
  92.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="deployPackages")
  93.      */
  94.     private $deletedBy;
  95.     /**
  96.      * @ORM\ManyToOne(targetEntity=Groupe::class, inversedBy="deployPackages")
  97.      */
  98.     private $groupe;
  99.     public function __construct()
  100.     {
  101.         $this->logs = new ArrayCollection();
  102.     }
  103.     public function getId(): ?int
  104.     {
  105.         return $this->id;
  106.     }
  107.    
  108.     public function getCluster(): ?string
  109.     {
  110.         return $this->cluster;
  111.     }
  112.     public function setCluster(string $cluster): self
  113.     {
  114.         $this->cluster $cluster;
  115.         return $this;
  116.     }
  117.     public function getConfigVersion(): ?string
  118.     {
  119.         return $this->configVersion;
  120.     }
  121.     public function setConfigVersion(?string $configVersion): self
  122.     {
  123.         $this->configVersion $configVersion;
  124.         return $this;
  125.     }
  126.     public function getImageVersion(): ?string
  127.     {
  128.         return $this->imageVersion;
  129.     }
  130.     public function setImageVersion(?string $imageVersion): self
  131.     {
  132.         $this->imageVersion $imageVersion;
  133.         return $this;
  134.     }
  135.     public function getDeploymentDate(): ?\DateTimeInterface
  136.     {
  137.         return $this->deploymentDate;
  138.     }
  139.     public function setDeploymentDate(?\DateTimeInterface $deploymentDate): self
  140.     {
  141.         $this->deploymentDate $deploymentDate;
  142.         return $this;
  143.     }
  144.     public function getStatus(): ?string
  145.     {
  146.         return $this->status;
  147.     }
  148.     public function setStatus(string $status): self
  149.     {
  150.         $this->status $status;
  151.         return $this;
  152.     }
  153.     public function getExecutedAt(): ?\DateTimeInterface
  154.     {
  155.         return $this->executedAt;
  156.     }
  157.     public function setExecutedAt(?\DateTimeInterface $executedAt): self
  158.     {
  159.         $this->executedAt $executedAt;
  160.         return $this;
  161.     }
  162.     public function getCreatedAt(): ?\DateTimeInterface
  163.     {
  164.         return $this->createdAt;
  165.     }
  166.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  167.     {
  168.         $this->createdAt $createdAt;
  169.         return $this;
  170.     }
  171.     public function isApproved(): ?bool
  172.     {
  173.         return $this->approved;
  174.     }
  175.     public function setApproved(bool $approved): self
  176.     {
  177.         $this->approved $approved;
  178.         return $this;
  179.     }
  180.     public function getExecutedBy(): ?User
  181.     {
  182.         return $this->executedBy;
  183.     }
  184.     public function setExecutedBy(?User $executedBy): self
  185.     {
  186.         $this->executedBy $executedBy;
  187.         return $this;
  188.     }
  189.     public function getCreatedBy(): ?User
  190.     {
  191.         return $this->createdBy;
  192.     }
  193.     public function setCreatedBy(?User $createdBy): self
  194.     {
  195.         $this->createdBy $createdBy;
  196.         return $this;
  197.     }
  198.     public function getProjectName(): ?string
  199.     {
  200.         return $this->projectName;
  201.     }
  202.     public function setProjectName(string $projectName): self
  203.     {
  204.         $this->projectName $projectName;
  205.         return $this;
  206.     }
  207.     public function getProjectId(): ?int
  208.     {
  209.         return $this->projectId;
  210.     }
  211.     public function setProjectId(int $projectId): self
  212.     {
  213.         $this->projectId $projectId;
  214.         return $this;
  215.     }
  216.     public function getDeletedAt(): ?\DateTimeInterface
  217.     {
  218.         return $this->deletedAt;
  219.     }
  220.     public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  221.     {
  222.         $this->deletedAt $deletedAt;
  223.         return $this;
  224.     }
  225.     public function getExecutionLog(): ?string
  226.     {
  227.         return $this->executionLog;
  228.     }
  229.     public function setExecutionLog(?string $executionLog): self
  230.     {
  231.         $this->executionLog $executionLog;
  232.         return $this;
  233.     }
  234.     public function getFinishDate(): ?\DateTimeInterface
  235.     {
  236.         return $this->finishDate;
  237.     }
  238.     public function setFinishDate(?\DateTimeInterface $finishDate): self
  239.     {
  240.         $this->finishDate $finishDate;
  241.         return $this;
  242.     }
  243.     /**
  244.      * @return Collection<int, DeployLog>
  245.      */
  246.     public function getLogs(): Collection
  247.     {
  248.         return $this->logs;
  249.     }
  250.     public function addLogs(DeployLog $logs): self
  251.     {
  252.         if (!$this->logs->contains($logs)) {
  253.             $this->logs[] = $logs;
  254.             $logs->setLogsId($this);
  255.         }
  256.         return $this;
  257.     }
  258.     public function removeLogs(DeployLog $logs): self
  259.     {
  260.         if ($this->logs->removeElement($logs)) {
  261.             // set the owning side to null (unless already changed)
  262.             if ($logs->getLogsId() === $this) {
  263.                 $logs->setLogsId(null);
  264.             }
  265.         }
  266.         return $this;
  267.     }
  268.     public function isDeleted(): ?bool
  269.     {
  270.         return $this->deleted;
  271.     }
  272.     public function setDeleted(?bool $deleted): self
  273.     {
  274.         $this->deleted $deleted;
  275.         return $this;
  276.     }
  277.     public function getDeletedBy(): ?User
  278.     {
  279.         return $this->deletedBy;
  280.     }
  281.     public function setDeletedBy(?User $deletedBy): self
  282.     {
  283.         $this->deletedBy $deletedBy;
  284.         return $this;
  285.     }
  286.     public function getGroupe(): ?groupe
  287.     {
  288.         return $this->groupe;
  289.     }
  290.     public function setGroupe(?groupe $groupe): self
  291.     {
  292.         $this->groupe $groupe;
  293.         return $this;
  294.     }
  295. }