<?phpnamespace App\Entity\System;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\System\RefundLineRepository") * * @ORM\Table( * uniqueConstraints={ * * @ORM\UniqueConstraint(name="uk_order_detail_refund", columns={"refund_id", "order_detail_id"}) * } * ) */class RefundLine{ /** * @var int * * @ORM\Id * * @ORM\GeneratedValue(strategy="AUTO") * * @ORM\Column(type="integer") */ private $id; /** * @var \DateTime * * @ORM\Column(type="datetime") */ private $dateAdd; /** * @var Refund * * @ORM\ManyToOne(targetEntity="App\Entity\System\Refund", inversedBy="refundLines") * * @ORM\JoinColumn(nullable=false) */ private $refund; /** * @var OrderDetail * * @ORM\ManyToOne(targetEntity="App\Entity\System\OrderDetail", inversedBy="refundLines") * * @ORM\JoinColumn(referencedColumnName="id_order_detail", nullable=false) */ private $orderDetail; /** * @var int * * @ORM\Column(type="integer", nullable=false) */ private $quantity; public function __construct() { $this->dateAdd = new \DateTime(); } public function getId(): int { return $this->id; } public function setId(int $id): RefundLine { $this->id = $id; return $this; } public function getDateAdd(): \DateTime { return $this->dateAdd; } public function setDateAdd(\DateTime $dateAdd): RefundLine { $this->dateAdd = $dateAdd; return $this; } public function getOrderDetail(): OrderDetail { return $this->orderDetail; } public function setOrderDetail(OrderDetail $orderDetail): RefundLine { $this->orderDetail = $orderDetail; return $this; } public function getQuantity(): int { return $this->quantity; } public function setQuantity(int $quantity): RefundLine { $this->quantity = $quantity; return $this; } public function getRefund(): Refund { return $this->refund; } public function setRefund(Refund $refund): RefundLine { $this->refund = $refund; return $this; }}