src/Flexy/ShopBundle/Entity/Shipping/ShipmentCollectMoney.php line 12
<?php
namespace App\Flexy\ShopBundle\Entity\Shipping;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\Flexy\ShopBundle\Entity\Shipping\ShipmentCollectMoneyRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ShipmentCollectMoneyRepository::class)]
#[ApiResource]
class ShipmentCollectMoney
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?float $amount = null;
#[ORM\ManyToOne(inversedBy: 'shipmentCollectMoney')]
private ?Shipment $shipment = null;
#[ORM\Column(length: 255)]
private ?string $paymentType = null;
#[ORM\Column(length: 255)]
private ?string $paymentMethod = null;
#[ORM\Column(nullable: true)]
private ?bool $isValid = null;
#[ORM\ManyToOne(inversedBy: 'shipmentCollectMoney')]
private ?CashBox $cashBox = null;
#[ORM\Column(nullable: true)]
private ?bool $isCollected = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $collectedAt = null;
public function getId(): ?int
{
return $this->id;
}
public function getAmount(): ?float
{
return $this->amount;
}
public function setAmount(float $amount): self
{
$this->amount = $amount;
return $this;
}
public function getShipment(): ?Shipment
{
return $this->shipment;
}
public function setShipment(?Shipment $shipment): self
{
$this->shipment = $shipment;
return $this;
}
public function getPaymentType(): ?string
{
return $this->paymentType;
}
public function setPaymentType(string $paymentType): self
{
$this->paymentType = $paymentType;
return $this;
}
public function getPaymentMethod(): ?string
{
return $this->paymentMethod;
}
public function setPaymentMethod(string $paymentMethod): self
{
$this->paymentMethod = $paymentMethod;
return $this;
}
public function isIsValid(): ?bool
{
return $this->isValid;
}
public function setIsValid(?bool $isValid): self
{
$this->isValid = $isValid;
return $this;
}
public function getCashBox(): ?CashBox
{
return $this->cashBox;
}
public function setCashBox(?CashBox $cashBox): self
{
$this->cashBox = $cashBox;
return $this;
}
public function isIsCollected(): ?bool
{
return $this->isCollected;
}
public function setIsCollected(?bool $isCollected): self
{
$this->isCollected = $isCollected;
return $this;
}
public function getCollectedAt(): ?\DateTimeInterface
{
return $this->collectedAt;
}
public function setCollectedAt(?\DateTimeInterface $collectedAt): self
{
$this->collectedAt = $collectedAt;
return $this;
}
}