<?php
namespace App\Entity;
use App\Repository\PartRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=PartRepository::class)
* @Vich\Uploadable
*/
class Part
{
const UNDER_PREPARATION = '0';
const UNDER_VALIDATION = '1';
const VALIDATED = '2';
const REFUSED = '3';
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({"part"})
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Assert\NotBlank
* @Groups({"part"})
*/
private $name;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $serial;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $part_number;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $description;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $rev;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $type;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $alt_part;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $material;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $filename;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $comp_mat_prima;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $cert_mat_prima;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $color_mat_prima;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $cert_proceso;
/**
* @ORM\Column(type="boolean", nullable=true)
* @Groups({"part"})
*/
private $cert_part;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $proc_acabado;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $otros_trat;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $obs_val;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $history;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $notes;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $technology;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $client_name;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $client_ref_part;
/**
* @ORM\ManyToOne(targetEntity=Supplier::class, inversedBy="parts")
* @ORM\JoinColumn(onDelete="SET NULL")
*/
private $supplier;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $file_cad;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_stl;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_2d;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_fab;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_verif;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_01;
/**
* NOTE: This is not a mapped field of entity metadata, just a simple property.
*
* @Vich\UploadableField(mapping="part_file", fileNameProperty="file_01")
* @Assert\File(
* maxSize = "10M",
* maxSizeMessage = "El tamaño máximo permitido del archivo es {{ limit }} MB.",
* )
*
* @var File|null
*/
private $file01File;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_02;
/**
* NOTE: This is not a mapped field of entity metadata, just a simple property.
*
* @Vich\UploadableField(mapping="part_file", fileNameProperty="file_02")
* @Assert\File(
* maxSize = "10M",
* maxSizeMessage = "El tamaño máximo permitido del archivo es {{ limit }} MB.",
* )
*
* @var File|null
*/
private $file02File;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_03;
/**
* NOTE: This is not a mapped field of entity metadata, just a simple property.
*
* @Vich\UploadableField(mapping="part_file", fileNameProperty="file_03")
* @Assert\File(
* maxSize = "10M",
* maxSizeMessage = "El tamaño máximo permitido del archivo es {{ limit }} MB.",
* )
*
* @var File|null
*/
private $file03File;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_04;
/**
* NOTE: This is not a mapped field of entity metadata, just a simple property.
*
* @Vich\UploadableField(mapping="part_file", fileNameProperty="file_04")
* @Assert\File(
* maxSize = "10M",
* maxSizeMessage = "El tamaño máximo permitido del archivo es {{ limit }} MB.",
* )
*
* @var File|null
*/
private $file04File;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_05;
/**
* NOTE: This is not a mapped field of entity metadata, just a simple property.
*
* @Vich\UploadableField(mapping="part_file", fileNameProperty="file_05")
* @Assert\File(
* maxSize = "10M",
* maxSizeMessage = "El tamaño máximo permitido del archivo es {{ limit }} MB.",
* )
*
* @var File|null
*/
private $file05File;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $nominal_property_01;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $tolerance_property_01;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $nominal_property_02;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $tolerance_property_02;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $nominal_property_03;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $tolerance_property_03;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $nominal_fab_param_01;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $tolerance_fab_param_01;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $nominal_fab_param_02;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"part"})
*/
private $tolerance_fab_param_02;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({"part"})
*/
private $created_at;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({"part"})
*/
private $updated_at;
/**
* @ORM\ManyToOne(targetEntity=Company::class, inversedBy="parts")
* @ORM\JoinColumn(nullable=false)
* @Assert\NotBlank
*/
private $company;
/**
* @ORM\ManyToMany(targetEntity=Library::class, inversedBy="parts")
*/
private $libraries;
/**
* @ORM\OneToMany(targetEntity=Order::class, mappedBy="part", orphanRemoval=true)
*/
private $orders;
/**
* @ORM\Column(type="string", length=14)
* @Groups({"part"})
*/
private $ref;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"part"})
*/
private $version;
/**
* @ORM\Column(type="string", length=50, nullable=true)
* @Groups({"part"})
*/
private $autor;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $equipo;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $altura_capa;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $diam_boquilla;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $tmp_boquilla;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $tmp_cama;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $tmp_camara;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $velocidad_impresion;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $perimetro_relleno;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $soportes;
/**
* @ORM\Column(type="string", length=510, nullable=true)
* @Groups({"part"})
*/
private $observaciones_fab;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $punto_laser;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $potencia_fuente;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $tam_pixel;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $tiempo_expos;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $distan_hatch;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $velocidad_recoater;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $enfriamiento;
/**
* @ORM\Column(type="string", length=100, nullable=true)
* @Groups({"part"})
*/
private $atmosfera;
/**
* @ORM\Column(type="string", nullable=true)
* @Groups({"part"})
*/
private $saturacion;
/**
* @ORM\Column(type="boolean", nullable=true)
* @Groups({"part"})
*/
private $locked;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({"part"})
*/
private $locked_at;
/**
* @ORM\ManyToOne(targetEntity=User::class)
* @Groups({"part"})
*/
private $locked_user;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $print_mode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $bulk_import_file;
/**
* @ORM\ManyToOne(targetEntity=Equipment::class)
*/
private $equipment_id;
/**
* @ORM\ManyToOne(targetEntity=Material::class)
*/
private $material_id;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $altura_capa_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $diam_boquilla_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $tmp_boquilla_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $tmp_cama_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $tmp_camara_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $velocidad_impresion_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $velocidad_recoater_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $punto_laser_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $potencia_fuente_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $tam_pixel_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $tiempo_expos_tol;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $distan_hatch_tol;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $applicable_regulations;
/**
* @ORM\Column(type="string", length=510, nullable=true)
* @Groups({"part"})
*/
private $fileOthers;
/**
* @ORM\ManyToOne(targetEntity=CompanyClient::class, inversedBy="parts")
* @ORM\JoinColumn(onDelete="SET NULL")
*/
private $company_client;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file_preview;
/**
* @ORM\Column(type="text", length=255, nullable=true)
*/
private $data;
/**
* @ORM\Column(type="integer", length=255, nullable=true)
*/
private $prototypeOrder;
/**
* @ORM\Column(type="integer", length=1, nullable=true, options={"default" : 0})
* 0: en preparacion
* 1: en validación
* 2: validado
* 3: rechazado
* /
*/
private $prototypeStatus;
public function __construct()
{
$this->created_at = new \DateTime();
$this->markAsUpdated();
$this->libraries = new ArrayCollection();
$this->orders = new ArrayCollection();
}
// Registra el método mágico para imprimir el nombre del estado, por ejemplo, California
public function __toString() {
return $this->name;
}
public function getId(): ?int
{
return $this->id;
}
public function setId(?int $id): self
{
$this->id = $id;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getSerial(): ?string
{
return $this->serial;
}
public function setSerial(?string $serial): self
{
$this->serial = $serial;
return $this;
}
public function getPartNumber(): ?string
{
return $this->part_number;
}
public function setPartNumber(?string $part_number): self
{
$this->part_number = $part_number;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getRev(): ?string
{
return $this->rev;
}
public function setRev(?string $rev): self
{
$this->rev = $rev;
return $this;
}
public function getAltPart(): ?string
{
return $this->alt_part;
}
public function setAltPart(?string $alt_part): self
{
$this->alt_part = $alt_part;
return $this;
}
public function getMaterial(): ?string
{
return $this->material;
}
public function setMaterial(?string $material): self
{
$this->material = $material;
return $this;
}
public function getFilename(): ?string
{
if (strpos('.packaged',$this->filename) !== false) {
return "images/lock.png";
}
return $this->filename;
}
public function setFilename(?string $filename): self
{
$this->filename = $filename;
return $this;
}
public function getHistory(): ?string
{
return $this->history;
}
public function setHistory(?string $history): self
{
$this->history = $history;
return $this;
}
public function getNotes(): ?string
{
return $this->notes;
}
public function setNotes(?string $notes): self
{
$this->notes = $notes;
return $this;
}
public function getTechnology(): ?string
{
return $this->technology;
}
public function setTechnology(?string $technology): self
{
$this->technology = $technology;
return $this;
}
public function getClientName(): ?string
{
return $this->client_name;
}
public function setClientName(?string $client_name): self
{
$this->client_name = $client_name;
return $this;
}
public function getClientRefPart(): ?string
{
return $this->client_ref_part;
}
public function setClientRefPart(?string $client_ref_part): self
{
$this->client_ref_part = $client_ref_part;
return $this;
}
public function getSupplier(): ?Supplier
{
return $this->supplier;
}
public function setSupplier(?Supplier $supplier): self
{
$this->supplier = $supplier;
return $this;
}
public function getFileCad(): ?string
{
return $this->file_cad;
}
public function setFileCad(?string $file_cad): self
{
$this->file_cad = $file_cad;
return $this;
}
public function getFileStl(): ?string
{
return $this->file_stl;
}
public function setFileStl(?string $file_stl): self
{
$this->file_stl = $file_stl;
return $this;
}
public function getFile2d(): ?string
{
return $this->file_2d;
}
public function setFile2d(?string $file_2d): self
{
$this->file_2d = $file_2d;
return $this;
}
public function getFileFab(): ?string
{
return $this->file_fab;
}
public function setFileFab(?string $file_fab): self
{
$this->file_fab = $file_fab;
return $this;
}
public function getFileVerif(): ?string
{
return $this->file_verif;
}
public function setFileVerif(?string $file_verif): self
{
$this->file_verif = $file_verif;
return $this;
}
/**
* If manually uploading a file (i.e. not using Symfony Form) ensure an instance
* of 'UploadedFile' is injected into this setter to trigger the update. If this
* bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
* must be able to accept an instance of 'File' as the bundle will inject one here
* during Doctrine hydration.
*
* @param File|\Symfony\Component\HttpFoundation\File\UploadedFile|null $imageFile
*/
public function setFile01File(?File $file01File = null): void
{
$this->file01File = $file01File;
if (null !== $file01File) {
// It is required that at least one field changes if you are using doctrine
// otherwise the event listeners won't be called and the file is lost
$this->markAsUpdated();
}
}
public function getFile01File(): ?File
{
return $this->file01File;
}
public function getFile01(): ?string
{
return $this->file_01;
}
public function setFile01(?string $file_01): self
{
$this->file_01 = $file_01;
return $this;
}
/**
* If manually uploading a file (i.e. not using Symfony Form) ensure an instance
* of 'UploadedFile' is injected into this setter to trigger the update. If this
* bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
* must be able to accept an instance of 'File' as the bundle will inject one here
* during Doctrine hydration.
*
* @param File|\Symfony\Component\HttpFoundation\File\UploadedFile|null $imageFile
*/
public function setFile02File(?File $file02File = null): void
{
$this->file02File = $file02File;
if (null !== $file02File) {
// It is required that at least one field changes if you are using doctrine
// otherwise the event listeners won't be called and the file is lost
$this->markAsUpdated();
}
}
public function getFile02File(): ?File
{
return $this->file02File;
}
public function getFile02(): ?string
{
return $this->file_02;
}
public function setFile02(?string $file_02): self
{
$this->file_02 = $file_02;
return $this;
}
/**
* If manually uploading a file (i.e. not using Symfony Form) ensure an instance
* of 'UploadedFile' is injected into this setter to trigger the update. If this
* bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
* must be able to accept an instance of 'File' as the bundle will inject one here
* during Doctrine hydration.
*
* @param File|\Symfony\Component\HttpFoundation\File\UploadedFile|null $imageFile
*/
public function setFile03File(?File $file03File = null): void
{
$this->file03File = $file03File;
if (null !== $file03File) {
// It is required that at least one field changes if you are using doctrine
// otherwise the event listeners won't be called and the file is lost
$this->markAsUpdated();
}
}
public function getFile03File(): ?File
{
return $this->file03File;
}
public function getFile03(): ?string
{
return $this->file_03;
}
public function setFile03(?string $file_03): self
{
$this->file_03 = $file_03;
return $this;
}
/**
* If manually uploading a file (i.e. not using Symfony Form) ensure an instance
* of 'UploadedFile' is injected into this setter to trigger the update. If this
* bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
* must be able to accept an instance of 'File' as the bundle will inject one here
* during Doctrine hydration.
*
* @param File|\Symfony\Component\HttpFoundation\File\UploadedFile|null $imageFile
*/
public function setFile04File(?File $file04File = null): void
{
$this->file04File = $file04File;
if (null !== $file04File) {
// It is required that at least one field changes if you are using doctrine
// otherwise the event listeners won't be called and the file is lost
$this->markAsUpdated();
}
}
public function getFile04File(): ?File
{
return $this->file04File;
}
public function getFile04(): ?string
{
return $this->file_04;
}
public function setFile04(?string $file_04): self
{
$this->file_04 = $file_04;
return $this;
}
/**
* If manually uploading a file (i.e. not using Symfony Form) ensure an instance
* of 'UploadedFile' is injected into this setter to trigger the update. If this
* bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
* must be able to accept an instance of 'File' as the bundle will inject one here
* during Doctrine hydration.
*
* @param File|\Symfony\Component\HttpFoundation\File\UploadedFile|null $imageFile
*/
public function setFile05File(?File $file05File = null): void
{
$this->file05File = $file05File;
if (null !== $file05File) {
// It is required that at least one field changes if you are using doctrine
// otherwise the event listeners won't be called and the file is lost
$this->markAsUpdated();
}
}
public function getFile05File(): ?File
{
return $this->file05File;
}
public function getFile05(): ?string
{
return $this->file_05;
}
public function setFile05(?string $file_05): self
{
$this->file_05 = $file_05;
return $this;
}
public function getNominalProperty01(): ?string
{
return $this->nominal_property_01;
}
public function setNominalProperty01(?string $nominal_property_01): self
{
$this->nominal_property_01 = $nominal_property_01;
return $this;
}
public function getToleranceProperty01(): ?string
{
return $this->tolerance_property_01;
}
public function setToleranceProperty01(?string $tolerance_property_01): self
{
$this->tolerance_property_01 = $tolerance_property_01;
return $this;
}
public function getNominalProperty02(): ?string
{
return $this->nominal_property_02;
}
public function setNominalProperty02(?string $nominal_property_02): self
{
$this->nominal_property_02 = $nominal_property_02;
return $this;
}
public function getToleranceProperty02(): ?string
{
return $this->tolerance_property_02;
}
public function setToleranceProperty02(?string $tolerance_property_02): self
{
$this->tolerance_property_02 = $tolerance_property_02;
return $this;
}
public function getNominalProperty03(): ?string
{
return $this->nominal_property_03;
}
public function setNominalProperty03(?string $nominal_property_03): self
{
$this->nominal_property_03 = $nominal_property_03;
return $this;
}
public function getToleranceProperty03(): ?string
{
return $this->tolerance_property_03;
}
public function setToleranceProperty03(?string $tolerance_property_03): self
{
$this->tolerance_property_03 = $tolerance_property_03;
return $this;
}
public function getNominalFabParam01(): ?string
{
return $this->nominal_fab_param_01;
}
public function setNominalFabParam01(?string $nominal_fab_param_01): self
{
$this->nominal_fab_param_01 = $nominal_fab_param_01;
return $this;
}
public function getToleranceFabParam01(): ?string
{
return $this->tolerance_fab_param_01;
}
public function setToleranceFabParam01(?string $tolerance_fab_param_01): self
{
$this->tolerance_fab_param_01 = $tolerance_fab_param_01;
return $this;
}
public function getNominalFabParam02(): ?string
{
return $this->nominal_fab_param_02;
}
public function setNominalFabParam02(?string $nominal_fab_param_02): self
{
$this->nominal_fab_param_02 = $nominal_fab_param_02;
return $this;
}
public function getToleranceFabParam02(): ?string
{
return $this->tolerance_fab_param_02;
}
public function setToleranceFabParam02(?string $tolerance_fab_param_02): self
{
$this->tolerance_fab_param_02 = $tolerance_fab_param_02;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
/**
* Set the value of createdAt
*
* @param \DateTime $createdAt
*/
public function markAsCreatedAt() : void
{
$this->created_at = new \DateTime();
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updated_at;
}
/**
* Set the value of updatedAt
*
* @param \DateTime $updatedAt
*/
public function markAsUpdated() : void
{
$this->updated_at = new \DateTime();
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
/**
* @return Collection|Library[]
*/
public function getLibraries(): Collection
{
return $this->libraries;
}
public function addLibrary(Library $library): self
{
if (!$this->libraries->contains($library)) {
$this->libraries[] = $library;
}
return $this;
}
public function removeLibrary(Library $library): self
{
$this->libraries->removeElement($library);
return $this;
}
/**
* @return Collection|Order[]
*/
public function getOrders(): Collection
{
return $this->orders;
}
public function addOrder(Order $order): self
{
if (!$this->orders->contains($order)) {
$this->orders[] = $order;
$order->setPart($this);
}
return $this;
}
public function removeOrder(Order $order): self
{
if ($this->orders->removeElement($order)) {
// set the owning side to null (unless already changed)
if ($order->getPart() === $this) {
$order->setPart(null);
}
}
return $this;
}
public function getRef(): ?string
{
return $this->ref;
}
public function setRef(string $ref): self
{
$splits = explode("-", $ref);
$splits[1]++;
$splits[1] = str_pad( $splits[1], 5, "0", STR_PAD_LEFT);
$splits[2] = "001";
$ref = implode("-", $splits);
$this->ref = $ref;
return $this;
}
public function setEditRef(string $ref): self
{
$this->ref = $ref;
return $this;
}
public function getVersion(): ?int
{
return $this->version;
}
public function setVersion(?int $version): self
{
$this->version = $version;
return $this;
}
public function getAutor(): ?string
{
return $this->autor;
}
public function setAutor(?string $autor): self
{
$this->autor = $autor;
return $this;
}
/**
* @return mixed
*/
public function getEquipo(): ?string
{
return $this->equipo;
}
/**
* @param mixed $equipo
*/
public function setEquipo(?string $equipo): self
{
$this->equipo = $equipo;
return $this;
}
/**
* @return mixed
*/
public function getAlturaCapa(): ?string
{
return $this->altura_capa;
}
/**
* @param mixed $altura_capa
*/
public function setAlturaCapa(?string $altura_capa): self
{
$this->altura_capa = $altura_capa;
return $this;
}
/**
* @return mixed
*/
public function getDiamBoquilla(): ?string
{
return $this->diam_boquilla;
}
/**
* @param mixed $diam_boquilla
*/
public function setDiamBoquilla(?string $diam_boquilla): self
{
$this->diam_boquilla = $diam_boquilla;
return $this;
}
/**
* @return mixed
*/
public function getTmpBoquilla(): ?string
{
return $this->tmp_boquilla;
}
/**
* @param mixed $tmp_boquilla
*/
public function setTmpBoquilla(?string $tmp_boquilla): self
{
$this->tmp_boquilla = $tmp_boquilla;
return $this;
}
/**
* @return mixed
*/
public function getTmpCama(): ?string
{
return $this->tmp_cama;
}
/**
* @param mixed $tmp_cama
*/
public function setTmpCama(?string $tmp_cama): self
{
$this->tmp_cama = $tmp_cama;
return $this;
}
/**
* @return mixed
*/
public function getTmpCamara(): ?string
{
return $this->tmp_camara;
}
/**
* @param mixed $tmp_camara
*/
public function setTmpCamara(?string $tmp_camara): self
{
$this->tmp_camara = $tmp_camara;
return $this;
}
/**
* @return mixed
*/
public function getVelocidadImpresion(): ?string
{
return $this->velocidad_impresion;
}
/**
* @param mixed $velocidad_impresion
*/
public function setVelocidadImpresion(?string $velocidad_impresion): self
{
$this->velocidad_impresion = $velocidad_impresion;
return $this;
}
/**
* @return mixed
*/
public function getPerimetroRelleno(): ?string
{
return $this->perimetro_relleno;
}
/**
* @param mixed $perimetro_relleno
*/
public function setPerimetroRelleno(?string $perimetro_relleno): self
{
$this->perimetro_relleno = $perimetro_relleno;
return $this;
}
/**
* @return mixed
*/
public function getSoportes(): ?string
{
return $this->soportes;
}
/**
* @param mixed $soportes
*/
public function setSoportes(?string $soportes): self
{
$this->soportes = $soportes;
return $this;
}
/**
* @return mixed
*/
public function getObservacionesFab(): ?string
{
return $this->observaciones_fab;
}
/**
* @param mixed $observaciones_fab
*/
public function setObservacionesFab(?string $observaciones_fab): self
{
$this->observaciones_fab = $observaciones_fab;
return $this;
}
/**
* @return mixed
*/
public function getPuntoLaser(): ?string
{
return $this->punto_laser;
}
/**
* @param mixed $punto_laser
*/
public function setPuntoLaser(?string $punto_laser): self
{
$this->punto_laser = $punto_laser;
return $this;
}
/**
* @return mixed
*/
public function getPotenciaFuente(): ?string
{
return $this->potencia_fuente;
}
/**
* @param mixed $potencia_fuente
*/
public function setPotenciaFuente(?string $potencia_fuente): self
{
$this->potencia_fuente = $potencia_fuente;
return $this;
}
/**
* @return mixed
*/
public function getTamPixel(): ?string
{
return $this->tam_pixel;
}
/**
* @param mixed $tam_pixel
*/
public function setTamPixel(?string $tam_pixel): self
{
$this->tam_pixel = $tam_pixel;
return $this;
}
/**
* @return mixed
*/
public function getTiempoExpos(): ?string
{
return $this->tiempo_expos;
}
/**
* @param mixed $tiempo_expos
*/
public function setTiempoExpos(?string $tiempo_expos): self
{
$this->tiempo_expos = $tiempo_expos;
return $this;
}
/**
* @return mixed
*/
public function getDistanHatch(): ?string
{
return $this->distan_hatch;
}
/**
* @param mixed $distan_hatch
*/
public function setDistanHatch(?string $distan_hatch): self
{
$this->distan_hatch = $distan_hatch;
return $this;
}
/**
* @return mixed
*/
public function getVelocidadRecoater(): ?string
{
return $this->velocidad_recoater;
}
/**
* @param mixed $velocidad_recoater
*/
public function setVelocidadRecoater(?string $velocidad_recoater): self
{
$this->velocidad_recoater = $velocidad_recoater;
return $this;
}
/**
* @return mixed
*/
public function getEnfriamiento(): ?string
{
return $this->enfriamiento;
}
/**
* @param mixed $enfriamiento
*/
public function setEnfriamiento(?string $enfriamiento): self
{
$this->enfriamiento = $enfriamiento;
return $this;
}
/**
* @return mixed
*/
public function getAtmosfera(): ?string
{
return $this->atmosfera;
}
/**
* @param mixed $atmosfera
*/
public function setAtmosfera(?string $atmosfera): self
{
$this->atmosfera = $atmosfera;
return $this;
}
/**
* @return mixed
*/
public function getSaturacion(): ?string
{
return $this->saturacion;
}
/**
* @param mixed $saturacion
*/
public function setSaturacion(?string $saturacion): self
{
$this->saturacion = $saturacion;
return $this;
}
public function getLocked(): ?bool
{
return $this->locked;
}
public function setLocked(?bool $locked): self
{
$this->locked = $locked;
return $this;
}
public function getLockedAt(): ?\DateTimeInterface
{
return $this->locked_at;
}
public function setLockedAt(?\DateTimeInterface $locked_at): self
{
$this->locked_at = $locked_at;
return $this;
}
public function getLockedUser(): ?User
{
return $this->locked_user;
}
public function setLockedUser(?User $locked_user): self
{
$this->locked_user = $locked_user;
return $this;
}
public function getPrintMode(): ?string
{
return $this->print_mode;
}
public function setPrintMode(?string $print_mode): self
{
$this->print_mode = $print_mode;
return $this;
}
public function getBulkImportFile(): ?string
{
return $this->bulk_import_file;
}
public function setBulkImportFile(?string $bulk_import_file): self
{
$this->bulk_import_file = $bulk_import_file;
return $this;
}
public function getEquipmentId(): ?Equipment
{
return $this->equipment_id;
}
public function setEquipmentId(?Equipment $equipment_id): self
{
$this->equipment_id = $equipment_id;
return $this;
}
public function getMaterialId(): ?Material
{
return $this->material_id;
}
public function setMaterialId(?Material $material_id): self
{
$this->material_id = $material_id;
return $this;
}
public function getAlturaCapaTol(): ?string
{
return $this->altura_capa_tol;
}
public function setAlturaCapaTol(?string $altura_capa_tol): self
{
$this->altura_capa_tol = $altura_capa_tol;
return $this;
}
public function getDiamBoquillaTol(): ?string
{
return $this->diam_boquilla_tol;
}
public function setDiamBoquillaTol(?string $diam_boquilla_tol): self
{
$this->diam_boquilla_tol = $diam_boquilla_tol;
return $this;
}
public function getTmpBoquillaTol(): ?string
{
return $this->tmp_boquilla_tol;
}
public function setTmpBoquillaTol(?string $tmp_boquilla_tol): self
{
$this->tmp_boquilla_tol = $tmp_boquilla_tol;
return $this;
}
public function getTmpCamaTol(): ?string
{
return $this->tmp_cama_tol;
}
public function setTmpCamaTol(?string $tmp_cama_tol): self
{
$this->tmp_cama_tol = $tmp_cama_tol;
return $this;
}
public function getTmpCamaraTol(): ?string
{
return $this->tmp_camara_tol;
}
public function setTmpCamaraTol(?string $tmp_camara_tol): self
{
$this->tmp_camara_tol = $tmp_camara_tol;
return $this;
}
public function getVelocidadImpresionTol(): ?string
{
return $this->velocidad_impresion_tol;
}
public function setVelocidadImpresionTol(?string $velocidad_impresion_tol): self
{
$this->velocidad_impresion_tol = $velocidad_impresion_tol;
return $this;
}
public function getVelocidadRecoaterTol(): ?string
{
return $this->velocidad_recoater_tol;
}
public function setVelocidadRecoaterTol(?string $velocidad_recoater_tol): self
{
$this->velocidad_recoater_tol = $velocidad_recoater_tol;
return $this;
}
public function getPuntoLaserTol(): ?string
{
return $this->punto_laser_tol;
}
public function setPuntoLaserTol(?string $punto_laser_tol): self
{
$this->punto_laser_tol = $punto_laser_tol;
return $this;
}
public function getPotenciaFuenteTol(): ?string
{
return $this->potencia_fuente_tol;
}
public function setPotenciaFuenteTol(?string $potencia_fuente_tol): self
{
$this->potencia_fuente_tol = $potencia_fuente_tol;
return $this;
}
public function getTamPixelTol(): ?string
{
return $this->tam_pixel_tol;
}
public function setTamPixelTol(?string $tam_pixel_tol): self
{
$this->tam_pixel_tol = $tam_pixel_tol;
return $this;
}
public function getTiempoExposTol(): ?string
{
return $this->tiempo_expos_tol;
}
public function setTiempoExposTol(?string $tiempo_expos_tol): self
{
$this->tiempo_expos_tol = $tiempo_expos_tol;
return $this;
}
public function getDistanHatchTol(): ?string
{
return $this->distan_hatch_tol;
}
public function setDistanHatchTol(?string $distan_hatch_tol): self
{
$this->distan_hatch_tol = $distan_hatch_tol;
return $this;
}
public function getCompMatPrima(): ?string
{
return $this->comp_mat_prima;
}
public function setCompMatPrima(?string $comp_mat_prima): self
{
$this->comp_mat_prima = $comp_mat_prima;
return $this;
}
public function getCertMatPrima(): ?string
{
return $this->cert_mat_prima;
}
public function setCertMatPrima(?string $cert_mat_prima): self
{
$this->cert_mat_prima = $cert_mat_prima;
return $this;
}
public function getColorMatPrima(): ?string
{
return $this->color_mat_prima;
}
public function setColorMatPrima(?string $color_mat_prima): self
{
$this->color_mat_prima = $color_mat_prima;
return $this;
}
public function getCertProceso(): ?string
{
return $this->cert_proceso;
}
public function setCertProceso(?string $cert_proceso): self
{
$this->cert_proceso = $cert_proceso;
return $this;
}
public function getCertPart(): ?bool
{
return $this->cert_part;
}
public function setCertPart(bool $cert_part): self
{
$this->cert_part = $cert_part;
return $this;
}
public function getProcAcabado(): ?string
{
return $this->proc_acabado;
}
public function setProcAcabado(?string $proc_acabado): self
{
$this->proc_acabado = $proc_acabado;
return $this;
}
public function getOtrosTrat(): ?string
{
return $this->otros_trat;
}
public function setOtrosTrat(?string $otros_trat): self
{
$this->otros_trat = $otros_trat;
return $this;
}
public function getObsVal(): ?string
{
return $this->obs_val;
}
public function setObsVal(?string $obs_val): self
{
$this->obs_val = $obs_val;
return $this;
}
public function getApplicableRegulations(): ?string
{
return $this->applicable_regulations;
}
public function setApplicableRegulations(?string $applicable_regulations): self
{
$this->applicable_regulations = $applicable_regulations;
return $this;
}
public function getFileOthers(): ?string
{
return $this->fileOthers;
}
public function setFileOthers(?string $fileOthers): self
{
$this->fileOthers = $fileOthers;
return $this;
}
public function getCompanyClient(): ?CompanyClient
{
return $this->company_client;
}
public function setCompanyClient(?CompanyClient $company_client): self
{
$this->company_client = $company_client;
return $this;
}
public function getFilePreview(): ?string
{
return $this->file_preview;
}
public function setFilePreview(?string $file_preview): self
{
$this->file_preview = $file_preview;
return $this;
}
/**
* @return mixed
*/
public function getData()
{
return $this->data;
}
/**
* @param mixed $data
*/
public function setData($data): void
{
$this->data = $data;
}
public function getType()
{
return $this->type;
}
/**
* @param mixed $type
*/
public function setType($type): void
{
$this->type = $type;
}
/**
* @return mixed
*/
public function getPrototypeOrder()
{
return $this->prototypeOrder;
}
/**
* @param mixed $prototypeOrder
*/
public function setPrototypeOrder($prototypeOrder): void
{
$this->prototypeOrder = $prototypeOrder;
}
/**
* @return mixed
*/
public function getPrototypeStatus()
{
return $this->prototypeStatus;
}
/**
* @param mixed $prototypeStatus
*/
public function setPrototypeStatus($prototypeStatus): void
{
$this->prototypeStatus = $prototypeStatus;
}
}