<?php
namespace App\Entity;
use App\Repository\OrderLineRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=OrderLineRepository::class)
*/
class OrderLine
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Order::class, inversedBy="orderLines")
* @ORM\JoinColumn(nullable=false)
*/
private $xorder;
/**
* @ORM\ManyToOne(targetEntity=ProductType::class, inversedBy="orderLines")
* @ORM\JoinColumn(nullable=false)
*/
private $ProductType;
/**
* @ORM\Column(type="integer")
*/
private $requested_qty;
public function getId(): ?int
{
return $this->id;
}
public function getXorder(): ?Order
{
return $this->xorder;
}
public function setXorder(?Order $xorder): self
{
$this->xorder = $xorder;
return $this;
}
public function getProductType(): ?ProductType
{
return $this->ProductType;
}
public function setProductType(?ProductType $ProductType): self
{
$this->ProductType = $ProductType;
return $this;
}
public function getRequestedQty(): ?int
{
return $this->requested_qty;
}
public function setRequestedQty(int $requested_qty): self
{
$this->requested_qty = $requested_qty;
return $this;
}
}