src/Flexy/ShopBundle/Entity/Shipping/ShipmentCollectMoney.php line 12

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\Shipping;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\Flexy\ShopBundle\Entity\Shipping\ShipmentCollectMoneyRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassShipmentCollectMoneyRepository::class)]
  8. #[ApiResource]
  9. class ShipmentCollectMoney
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column]
  16.     private ?float $amount null;
  17.     #[ORM\ManyToOne(inversedBy'shipmentCollectMoney')]
  18.     private ?Shipment $shipment null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $paymentType null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $paymentMethod null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?bool $isValid null;
  25.     #[ORM\ManyToOne(inversedBy'shipmentCollectMoney')]
  26.     private ?CashBox $cashBox null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?bool $isCollected null;
  29.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  30.     private ?\DateTimeInterface $collectedAt null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getAmount(): ?float
  36.     {
  37.         return $this->amount;
  38.     }
  39.     public function setAmount(float $amount): self
  40.     {
  41.         $this->amount $amount;
  42.         return $this;
  43.     }
  44.     public function getShipment(): ?Shipment
  45.     {
  46.         return $this->shipment;
  47.     }
  48.     public function setShipment(?Shipment $shipment): self
  49.     {
  50.         $this->shipment $shipment;
  51.         return $this;
  52.     }
  53.     public function getPaymentType(): ?string
  54.     {
  55.         return $this->paymentType;
  56.     }
  57.     public function setPaymentType(string $paymentType): self
  58.     {
  59.         $this->paymentType $paymentType;
  60.         return $this;
  61.     }
  62.     public function getPaymentMethod(): ?string
  63.     {
  64.         return $this->paymentMethod;
  65.     }
  66.     public function setPaymentMethod(string $paymentMethod): self
  67.     {
  68.         $this->paymentMethod $paymentMethod;
  69.         return $this;
  70.     }
  71.     public function isIsValid(): ?bool
  72.     {
  73.         return $this->isValid;
  74.     }
  75.     public function setIsValid(?bool $isValid): self
  76.     {
  77.         $this->isValid $isValid;
  78.         return $this;
  79.     }
  80.     public function getCashBox(): ?CashBox
  81.     {
  82.         return $this->cashBox;
  83.     }
  84.     public function setCashBox(?CashBox $cashBox): self
  85.     {
  86.         $this->cashBox $cashBox;
  87.         return $this;
  88.     }
  89.     public function isIsCollected(): ?bool
  90.     {
  91.         return $this->isCollected;
  92.     }
  93.     public function setIsCollected(?bool $isCollected): self
  94.     {
  95.         $this->isCollected $isCollected;
  96.         return $this;
  97.     }
  98.     public function getCollectedAt(): ?\DateTimeInterface
  99.     {
  100.         return $this->collectedAt;
  101.     }
  102.     public function setCollectedAt(?\DateTimeInterface $collectedAt): self
  103.     {
  104.         $this->collectedAt $collectedAt;
  105.         return $this;
  106.     }
  107. }