src/Entity/StripeInfo.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StripeInfoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassStripeInfoRepository::class)]
  6. class StripeInfo
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $customerId;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $paymentMethodId;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $type;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $brand;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private $expMonth;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $expYear;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $last4;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $iban;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private $bankCode;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $branchCode;
  32.     #[ORM\Column(type'string'length255nullabletrue)]
  33.     private $country;
  34.     #[ORM\Column(type'string'length255nullabletrue)]
  35.     private $owner;
  36.     #[ORM\OneToOne(targetEntityUser::class, mappedBy'stripeInfo'cascade: ['persist''remove'])]
  37.     private $user;
  38.     #[ORM\Column(type'string'length255nullabletrue)]
  39.     private $accountId;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getCustomerId(): ?string
  45.     {
  46.         return $this->customerId;
  47.     }
  48.     public function setCustomerId(string $customerId): self
  49.     {
  50.         $this->customerId $customerId;
  51.         return $this;
  52.     }
  53.     public function getPaymentMethodId(): ?string
  54.     {
  55.         return $this->paymentMethodId;
  56.     }
  57.     public function setPaymentMethodId(string $paymentMethodId): self
  58.     {
  59.         $this->paymentMethodId $paymentMethodId;
  60.         return $this;
  61.     }
  62.     public function getType(): ?string
  63.     {
  64.         return $this->type;
  65.     }
  66.     public function setType(?string $type): self
  67.     {
  68.         $this->type $type;
  69.         return $this;
  70.     }
  71.     public function getBrand(): ?string
  72.     {
  73.         return $this->brand;
  74.     }
  75.     public function setBrand(?string $brand): self
  76.     {
  77.         $this->brand $brand;
  78.         return $this;
  79.     }
  80.     public function getExpMonth(): ?string
  81.     {
  82.         return $this->expMonth;
  83.     }
  84.     public function setExpMonth(?string $expMonth): self
  85.     {
  86.         $this->expMonth $expMonth;
  87.         return $this;
  88.     }
  89.     public function getExpYear(): ?string
  90.     {
  91.         return $this->expYear;
  92.     }
  93.     public function setExpYear(?string $expYear): self
  94.     {
  95.         $this->expYear $expYear;
  96.         return $this;
  97.     }
  98.     public function getLast4(): ?string
  99.     {
  100.         return $this->last4;
  101.     }
  102.     public function setLast4(?string $last4): self
  103.     {
  104.         $this->last4 $last4;
  105.         return $this;
  106.     }
  107.     public function getIban(): ?string
  108.     {
  109.         return $this->iban;
  110.     }
  111.     public function setIban(?string $iban): self
  112.     {
  113.         $this->iban $iban;
  114.         return $this;
  115.     }
  116.     public function getBankCode(): ?string
  117.     {
  118.         return $this->bankCode;
  119.     }
  120.     public function setBankCode(?string $bankCode): self
  121.     {
  122.         $this->bankCode $bankCode;
  123.         return $this;
  124.     }
  125.     public function getBranchCode(): ?string
  126.     {
  127.         return $this->branchCode;
  128.     }
  129.     public function setBranchCode(?string $branchCode): self
  130.     {
  131.         $this->branchCode $branchCode;
  132.         return $this;
  133.     }
  134.     public function getCountry(): ?string
  135.     {
  136.         return $this->country;
  137.     }
  138.     public function setCountry(?string $country): self
  139.     {
  140.         $this->country $country;
  141.         return $this;
  142.     }
  143.     public function getOwner(): ?string
  144.     {
  145.         return $this->owner;
  146.     }
  147.     public function setOwner(?string $owner): self
  148.     {
  149.         $this->owner $owner;
  150.         return $this;
  151.     }
  152.     public function getUser(): ?User
  153.     {
  154.         return $this->user;
  155.     }
  156.     public function setUser(?User $user): self
  157.     {
  158.         // unset the owning side of the relation if necessary
  159.         if ($user === null && $this->user !== null) {
  160.             $this->user->setStripeInfo(null);
  161.         }
  162.         // set the owning side of the relation if necessary
  163.         if ($user !== null && $user->getStripeInfo() !== $this) {
  164.             $user->setStripeInfo($this);
  165.         }
  166.         $this->user $user;
  167.         return $this;
  168.     }
  169.     public function getAccountId(): ?string
  170.     {
  171.         return $this->accountId;
  172.     }
  173.     public function setAccountId(?string $accountId): self
  174.     {
  175.         $this->accountId $accountId;
  176.         return $this;
  177.     }
  178. }