src/Flexy/ShopBundle/Entity/Shipping/CashOnDelivery.php line 14
<?phpnamespace App\Flexy\ShopBundle\Entity\Shipping;use ApiPlatform\Metadata\ApiResource;use App\Flexy\ShopBundle\Entity\Customer\Customer;use App\Flexy\ShopBundle\Entity\Payment\BankBookItem;use App\Repository\Flexy\ShopBundle\Entity\Shipping\CashOnDeliveryRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: CashOnDeliveryRepository::class)]#[ApiResource]class CashOnDelivery{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $createdAt = null;#[ORM\Column(length: 255, nullable: true)]private ?string $description = null;#[ORM\Column]private ?float $amount = null;#[ORM\ManyToOne(inversedBy: 'cashOnDeliveries',cascade:["persist"])]#[ORM\JoinColumn(nullable: false)]private ?Shipment $shipment = null;#[ORM\Column(length: 255, nullable: true)]private ?string $image = null;#[ORM\Column(nullable: true)]private ?bool $isValid = null;#[ORM\ManyToOne(inversedBy: 'cashOnDeliveries')]private ?CashBox $cashBox = null;#[ORM\Column(nullable: true)]private ?bool $isCollected = null;#[ORM\Column(length: 255)]private ?string $paymentMethod = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $collectedAt = null;#[ORM\ManyToOne(inversedBy: 'cashOnDeliveries')]private ?Customer $customer = null;#[ORM\Column(nullable: true)]private ?bool $isReceivedByCustomer = null;#[ORM\ManyToOne(inversedBy: 'cashOnDeliveries')]private ?BankBookItem $bankBookItem = null;public function getId(): ?int{return $this->id;}public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}public function setCreatedAt(?\DateTimeInterface $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): self{$this->description = $description;return $this;}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 getImage(): ?string{return $this->image;}public function setImage(?string $image): self{$this->image = $image;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 getPaymentMethod(): ?string{return $this->paymentMethod;}public function setPaymentMethod(string $paymentMethod): self{$this->paymentMethod = $paymentMethod;return $this;}public function getCollectedAt(): ?\DateTimeInterface{return $this->collectedAt;}public function setCollectedAt(?\DateTimeInterface $collectedAt): self{$this->collectedAt = $collectedAt;return $this;}public function getCustomer(): ?Customer{return $this->customer;}public function setCustomer(?Customer $customer): self{$this->customer = $customer;return $this;}public function isIsReceivedByCustomer(): ?bool{return $this->isReceivedByCustomer;}public function setIsReceivedByCustomer(?bool $isReceivedByCustomer): self{$this->isReceivedByCustomer = $isReceivedByCustomer;return $this;}public function getBankBookItem(): ?BankBookItem{return $this->bankBookItem;}public function setBankBookItem(?BankBookItem $bankBookItem): self{$this->bankBookItem = $bankBookItem;return $this;}}