<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\AcceptedProductRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AcceptedProductRepository::class)]
#[ApiResource]
class AcceptedProduct
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $name = null;
#[ORM\ManyToOne(inversedBy: 'n')]
private ?User $modified_user = null;
#[ORM\ManyToOne]
private ?User $created_by = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_entered = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_modified = null;
#[ORM\ManyToOne]
private ?Products $product = null;
#[ORM\ManyToOne]
private ?MeasurmentUnit $measurement_unit = null;
#[ORM\Column(nullable: true)]
private ?float $count = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $description = null;
#[ORM\Column(length: 100, nullable: true)]
private ?string $status = null;
#[ORM\ManyToOne(inversedBy: 'acceptedProducts')]
private ?PreOrderProduct $pre_order_product = null;
#[ORM\ManyToOne(inversedBy: 'acceptedProducts')]
private ?OrderProduct $order_product = null;
#[ORM\ManyToOne(inversedBy: 'acceptedProducts')]
private ?LoadInvoiceProduct $load_invoice_product = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getModifiedUser(): ?User
{
return $this->modified_user;
}
public function setModifiedUser(?User $modified_user): self
{
$this->modified_user = $modified_user;
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 getDateEntered(): ?\DateTimeInterface
{
return $this->date_entered;
}
public function setDateEntered(?\DateTimeInterface $date_entered): self
{
$this->date_entered = $date_entered;
return $this;
}
public function getDateModified(): ?\DateTimeInterface
{
return $this->date_modified;
}
public function setDateModified(?\DateTimeInterface $date_modified): self
{
$this->date_modified = $date_modified;
return $this;
}
public function getProduct(): ?Products
{
return $this->product;
}
public function setProduct(?Products $product): self
{
$this->product = $product;
return $this;
}
public function getMeasurementUnit(): ?MeasurmentUnit
{
return $this->measurement_unit;
}
public function setMeasurementUnit(?MeasurmentUnit $measurement_unit): self
{
$this->measurement_unit = $measurement_unit;
return $this;
}
public function getCount(): ?float
{
return $this->count;
}
public function setCount(?float $count): self
{
$this->count = $count;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getPreOrderProduct(): ?PreOrderProduct
{
return $this->pre_order_product;
}
public function setPreOrderProduct(?PreOrderProduct $pre_order_product): self
{
$this->pre_order_product = $pre_order_product;
return $this;
}
public function getOrderProduct(): ?OrderProduct
{
return $this->order_product;
}
public function setOrderProduct(?OrderProduct $order_product): self
{
$this->order_product = $order_product;
return $this;
}
public function getLoadInvoiceProduct(): ?LoadInvoiceProduct
{
return $this->load_invoice_product;
}
public function setLoadInvoiceProduct(?LoadInvoiceProduct $load_invoice_product): self
{
$this->load_invoice_product = $load_invoice_product;
return $this;
}
}