src/Entity/AcceptedProduct.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\AcceptedProductRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassAcceptedProductRepository::class)]
  8. #[ApiResource]
  9. class AcceptedProduct
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $name null;
  17.     #[ORM\ManyToOne(inversedBy'n')]
  18.     private ?User $modified_user null;
  19.     #[ORM\ManyToOne]
  20.     private ?User $created_by null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $date_entered null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $date_modified null;
  25.     #[ORM\ManyToOne]
  26.     private ?Products $product null;
  27.     #[ORM\ManyToOne]
  28.     private ?MeasurmentUnit $measurement_unit null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?float $count null;
  31.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  32.     private ?string $description null;
  33.     #[ORM\Column(length100nullabletrue)]
  34.     private ?string $status null;
  35.     #[ORM\ManyToOne(inversedBy'acceptedProducts')]
  36.     private ?PreOrderProduct $pre_order_product null;
  37.     #[ORM\ManyToOne(inversedBy'acceptedProducts')]
  38.     private ?OrderProduct $order_product null;
  39.     #[ORM\ManyToOne(inversedBy'acceptedProducts')]
  40.     private ?LoadInvoiceProduct $load_invoice_product null;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getName(): ?string
  46.     {
  47.         return $this->name;
  48.     }
  49.     public function setName(?string $name): self
  50.     {
  51.         $this->name $name;
  52.         return $this;
  53.     }
  54.     public function getModifiedUser(): ?User
  55.     {
  56.         return $this->modified_user;
  57.     }
  58.     public function setModifiedUser(?User $modified_user): self
  59.     {
  60.         $this->modified_user $modified_user;
  61.         return $this;
  62.     }
  63.     public function getCreatedBy(): ?User
  64.     {
  65.         return $this->created_by;
  66.     }
  67.     public function setCreatedBy(?User $created_by): self
  68.     {
  69.         $this->created_by $created_by;
  70.         return $this;
  71.     }
  72.     public function getDateEntered(): ?\DateTimeInterface
  73.     {
  74.         return $this->date_entered;
  75.     }
  76.     public function setDateEntered(?\DateTimeInterface $date_entered): self
  77.     {
  78.         $this->date_entered $date_entered;
  79.         return $this;
  80.     }
  81.     public function getDateModified(): ?\DateTimeInterface
  82.     {
  83.         return $this->date_modified;
  84.     }
  85.     public function setDateModified(?\DateTimeInterface $date_modified): self
  86.     {
  87.         $this->date_modified $date_modified;
  88.         return $this;
  89.     }
  90.     public function getProduct(): ?Products
  91.     {
  92.         return $this->product;
  93.     }
  94.     public function setProduct(?Products $product): self
  95.     {
  96.         $this->product $product;
  97.         return $this;
  98.     }
  99.     public function getMeasurementUnit(): ?MeasurmentUnit
  100.     {
  101.         return $this->measurement_unit;
  102.     }
  103.     public function setMeasurementUnit(?MeasurmentUnit $measurement_unit): self
  104.     {
  105.         $this->measurement_unit $measurement_unit;
  106.         return $this;
  107.     }
  108.     public function getCount(): ?float
  109.     {
  110.         return $this->count;
  111.     }
  112.     public function setCount(?float $count): self
  113.     {
  114.         $this->count $count;
  115.         return $this;
  116.     }
  117.     public function getDescription(): ?string
  118.     {
  119.         return $this->description;
  120.     }
  121.     public function setDescription(?string $description): self
  122.     {
  123.         $this->description $description;
  124.         return $this;
  125.     }
  126.     public function getStatus(): ?string
  127.     {
  128.         return $this->status;
  129.     }
  130.     public function setStatus(?string $status): self
  131.     {
  132.         $this->status $status;
  133.         return $this;
  134.     }
  135.     public function getPreOrderProduct(): ?PreOrderProduct
  136.     {
  137.         return $this->pre_order_product;
  138.     }
  139.     public function setPreOrderProduct(?PreOrderProduct $pre_order_product): self
  140.     {
  141.         $this->pre_order_product $pre_order_product;
  142.         return $this;
  143.     }
  144.     public function getOrderProduct(): ?OrderProduct
  145.     {
  146.         return $this->order_product;
  147.     }
  148.     public function setOrderProduct(?OrderProduct $order_product): self
  149.     {
  150.         $this->order_product $order_product;
  151.         return $this;
  152.     }
  153.     public function getLoadInvoiceProduct(): ?LoadInvoiceProduct
  154.     {
  155.         return $this->load_invoice_product;
  156.     }
  157.     public function setLoadInvoiceProduct(?LoadInvoiceProduct $load_invoice_product): self
  158.     {
  159.         $this->load_invoice_product $load_invoice_product;
  160.         return $this;
  161.     }
  162. }