src/Entity/ProductReturn.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductReturnRepository;
  4. use Doctrine\DBAL\Types\DecimalType;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Blameable\Traits\BlameableEntity;
  7. use Gedmo\Timestampable\Traits\TimestampableEntity;
  8. #[ORM\Entity(repositoryClassProductReturnRepository::class)]
  9. class ProductReturn
  10. {
  11.     use BlameableEntity;
  12.     use TimestampableEntity;
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  15.     #[ORM\Column]
  16.     private ?int $id null;
  17.     #[ORM\ManyToOne]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?ProductReturnStatus $productReturnStatus null;
  20.     #[ORM\Column(length1024nullabletrue)]
  21.     private ?string $commentsBuyer null;
  22.     #[ORM\Column(length1024nullabletrue)]
  23.     private ?string $commentsTriwuu null;
  24.     #[ORM\ManyToOne]
  25.     private ?ReturnReasons $returnReasons null;
  26.     #[ORM\Column]
  27.     private ?int $quantity null;
  28.     #[ORM\Column]
  29.     private ?float $moneytoreturn 0;
  30.     #[ORM\ManyToOne]
  31.     #[ORM\JoinColumn(nullablefalse)]
  32.     private ?Order $givenOrder null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getProductReturnStatus(): ?ProductReturnStatus
  38.     {
  39.         return $this->productReturnStatus;
  40.     }
  41.     public function setProductReturnStatus(?ProductReturnStatus $productReturnStatus): self
  42.     {
  43.         $this->productReturnStatus $productReturnStatus;
  44.         return $this;
  45.     }
  46.     public function getCommentsBuyer(): ?string
  47.     {
  48.         return $this->commentsBuyer;
  49.     }
  50.     public function setCommentsBuyer(?string $commentsBuyer): self
  51.     {
  52.         $this->commentsBuyer $commentsBuyer;
  53.         return $this;
  54.     }
  55.     public function getCommentsTriwuu(): ?string
  56.     {
  57.         return $this->commentsTriwuu;
  58.     }
  59.     public function setCommentsTriwuu(?string $commentsTriwuu): self
  60.     {
  61.         $this->commentsTriwuu $commentsTriwuu;
  62.         return $this;
  63.     }
  64.     public function getReturnReasons(): ?ReturnReasons
  65.     {
  66.         return $this->returnReasons;
  67.     }
  68.     public function setReturnReasons(?ReturnReasons $returnReasons): self
  69.     {
  70.         $this->returnReasons $returnReasons;
  71.         return $this;
  72.     }
  73.     public function getQuantity(): ?int
  74.     {
  75.         return $this->quantity;
  76.     }
  77.     public function setQuantity(int $quantity): self
  78.     {
  79.         $this->quantity $quantity;
  80.         return $this;
  81.     }
  82.     public function getGivenOrder(): ?Order
  83.     {
  84.         return $this->givenOrder;
  85.     }
  86.     public function setGivenOrder(?Order $givenOrder): self
  87.     {
  88.         $this->givenOrder $givenOrder;
  89.         return $this;
  90.     }
  91.     public function getMoneyToReturn(): ?float
  92.     {
  93.         return $this->moneytoreturn;
  94.     }
  95.     public function setMoneyToReturn(float $moneytoreturn): self
  96.     {
  97.         $this->moneytoreturn $moneytoreturn;
  98.         return $this;
  99.     }
  100.     
  101. }