<?php
namespace App\Entity;
use App\Repository\OpsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: OpsRepository::class)]
class Ops
{
#[ORM\OneToMany(targetEntity: Unl::class, mappedBy: 'ops', cascade: ["persist", "remove"],fetch: "LAZY")]
#[ORM\JoinColumn(referencedColumnName: 'opsjob')]
#[ORM\OrderBy(['datestatut' => 'DESC','heurestatut' => 'DESC'])]
private $unls;
#[ORM\OneToMany(targetEntity: Etatfinal::class, mappedBy: 'ops', cascade: ["persist", "remove"],fetch: "LAZY")]
#[ORM\JoinColumn(referencedColumnName: 'opsjob')]
private $finals;
#[ORM\OneToMany(targetEntity: Trace::class, mappedBy: 'ops', cascade: ["persist", "remove"],fetch: "LAZY")]
#[ORM\JoinColumn(referencedColumnName: 'ops_id')]
private $traces;
#[ORM\ManyToOne(targetEntity: Statutfinal::class,fetch: "LAZY")]
#[ORM\JoinColumn(referencedColumnName: 'id')]
private $statutfinal;
#[ORM\OneToMany(targetEntity: Action::class, mappedBy: 'ops', cascade: ["persist", "remove"],fetch: "LAZY")]
#[ORM\JoinColumn(referencedColumnName: 'id')]
#[ORM\OrderBy(['dateM' => 'DESC'])]
private $actions;
#[ORM\Id]
#[ORM\Column(length: 255, nullable: true)]
private ?string $numjobpf = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $compteclient = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $numcommandepf = null;
#[ORM\Column(nullable: true)]
private ?int $statutfinal_id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $numlabo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $medeledescription = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $numcommandeclient = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $codechorus = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $quantite = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $numariteck = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $numbliteck = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $creele = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $majle = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $batenvoile = null;
#[ORM\Column(nullable: true)]
private ?int $groupe = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $codelivraison = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $ldm = null;
public function getId(): ?int
{
return $this->id;
}
/**
* @return Collection|Action[]
*/
public function getActions(): Collection
{
return $this->actions;
}
public function addAction(Action $action): self
{
if (!$this->actions->contains($action)) {
$this->actions[] = $action;
$action->setTypeaction($this);
}
return $this;
}
public function removeAction(Action $action): self
{
if ($this->actions->removeElement($action)) {
// set the owning side to null (unless already changed)
if ($action->getTypeaction() === $this) {
$action->setTypeaction(null);
}
}
return $this;
}
public function getStatutfinalId(): ?int
{
return $this->statutfinal_id;
}
public function setStatutfinalId(?int $statutfinal_id): self
{
$this->statutfinal_id = $statutfinal_id;
return $this;
}
public function getStatutfinal(): ?Statutfinal
{
return $this->statutfinal;
}
public function setStatutfinal(Statutfinal $statutfinal): self
{
$this->statutfinal = $statutfinal;
return $this;
}
/**
* @return Collection|Unl[]
*/
public function getUnls(): Collection
{
return $this->unls;
}
public function addUnl(Unl $unl): self
{
if (!$this->unls->contains($unl)) {
$this->unls[] = $unl;
$unl->setCommande($this);
}
return $this;
}
public function removeUnl(Unl $unl): self
{
if ($this->unls->removeElement($unl)) {
// set the owning side to null (unless already changed)
if ($unl->getCommande() === $this) {
$unl->setCommande(null);
}
}
return $this;
}
/**
* @return Collection|Etatfinal[]
*/
public function getFinals(): Collection
{
return $this->finals;
}
public function addFinal(Etatfinal $final): void
{
if (!$this->finals->contains($final)) {
$this->finals->add($final);
}
}
/**
* @return Collection|Trace[]
*/
public function getTraces(): Collection
{
return $this->traces;
}
public function addTrace(Trace $trace): self
{
if (!$this->traces->contains($trace)) {
$this->traces[] = $trace;
$trace->setCommande($this);
}
return $this;
}
public function removeTrace(Trace $trace): self
{
if ($this->traces->removeElement($trace)) {
// set the owning side to null (unless already changed)
if ($trace->getCommande() === $this) {
$trace->setCommande(null);
}
}
return $this;
}
public function getCompteclient(): ?string
{
return $this->compteclient;
}
public function setCompteclient(?string $compteclient): self
{
$this->compteclient = $compteclient;
return $this;
}
public function getNumcommandepf(): ?string
{
return $this->numcommandepf;
}
public function setNumcommandepf(?string $numcommandepf): self
{
$this->numcommandepf = $numcommandepf;
return $this;
}
public function getNumlabo(): ?string
{
return $this->numlabo;
}
public function setNumlabo(?string $numlabo): self
{
$this->numlabo = $numlabo;
return $this;
}
public function getMedeledescription(): ?string
{
return $this->medeledescription;
}
public function setMedeledescription(?string $medeledescription): self
{
$this->medeledescription = $medeledescription;
return $this;
}
public function getNumcommandeclient(): ?string
{
return $this->numcommandeclient;
}
public function setNumcommandeclient(?string $numcommandeclient): self
{
$this->numcommandeclient = $numcommandeclient;
return $this;
}
public function getCodechorus(): ?string
{
return $this->codechorus;
}
public function setCodechorus(?string $codechorus): self
{
$this->codechorus = $codechorus;
return $this;
}
public function getQuantite(): ?string
{
return $this->quantite;
}
public function setQuantite(?string $quantite): self
{
$this->quantite = $quantite;
return $this;
}
public function getNumjobpf(): ?string
{
return $this->numjobpf;
}
public function setNumjobpf(?string $numjobpf): self
{
$this->numjobpf = $numjobpf;
return $this;
}
public function getNumariteck(): ?string
{
return $this->numariteck;
}
public function setNumariteck(?string $numariteck): self
{
$this->numariteck = $numariteck;
return $this;
}
public function getNumbliteck(): ?string
{
return $this->numbliteck;
}
public function setNumbliteck(?string $numbliteck): self
{
$this->numbliteck = $numbliteck;
return $this;
}
public function getCreele(): ?\DateTimeInterface
{
return $this->creele;
}
public function setCreele(?\DateTimeInterface $creele): self
{
$this->creele = $creele;
return $this;
}
public function getMajle(): ?\DateTimeInterface
{
return $this->majle;
}
public function setMajle(?\DateTimeInterface $majle): self
{
$this->majle = $majle;
return $this;
}
public function getBatenvoile(): ?\DateTimeInterface
{
return $this->batenvoile;
}
public function setBatenvoile(?\DateTimeInterface $batenvoile): self
{
$this->batenvoile = $batenvoile;
return $this;
}
public function getGroupe(): ?int
{
return $this->groupe;
}
public function setGroupe(?int $groupe): self
{
$this->groupe = $groupe;
return $this;
}
public function getCodelivraison(): ?string
{
return $this->codelivraison;
}
public function setCodelivraison(?string $codelivraison): self
{
$this->codelivraison = $codelivraison;
return $this;
}
public function getLdm(): ?string
{
return $this->ldm;
}
public function setLdm(?string $ldm): self
{
$this->ldm = $ldm;
return $this;
}
}