<?php
namespace App\Entity;
use App\Repository\UserBillingRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: UserBillingRepository::class)]
class UserBilling
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $cardId;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'userBillings')]
private $user;
private $cardName;
private $cardNumber;
private $cardExpiryMonth;
private $cardExpiryYear;
private $cardExpiryMonthYear;
private $paymentCardCSC;
public function getId(): ?int
{
return $this->id;
}
public function getCardId(): ?string
{
return $this->cardId;
}
public function setCardId(?string $cardId): self
{
$this->cardId = $cardId;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getCardName(): ?string
{
return $this->cardName;
}
public function setCardName(?string $cardName): self
{
$this->cardName = $cardName;
return $this;
}
public function getCardNumber(): ?string
{
return $this->cardNumber;
}
public function setCardNumber(?string $cardNumber): self
{
$this->cardNumber = $cardNumber;
return $this;
}
public function getCardExpiryMonth(): ?string
{
return $this->cardExpiryMonth;
}
public function setCardExpiryMonth(?string $cardExpiryMonth): self
{
$this->cardExpiryMonth = $cardExpiryMonth;
return $this;
}
public function getCardExpiryYear(): ?string
{
return $this->cardExpiryYear;
}
public function setCardExpiryYear(?string $cardExpiryYear): self
{
$this->cardExpiryYear = $cardExpiryYear;
return $this;
}
public function getCardExpiryMonthYear(): ?string
{
return $this->cardExpiryMonthYear;
}
public function setCardExpiryMonthYear(?string $cardExpiryMonthYear): self
{
$this->cardExpiryMonthYear = $cardExpiryMonthYear;
return $this;
}
public function getPaymentCardCSC(): ?string
{
return $this->paymentCardCSC;
}
public function setPaymentCardCSC(?string $paymentCardCSC): self
{
$this->paymentCardCSC = $paymentCardCSC;
return $this;
}
}