src/Entity/StripeSubscription.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\StripeSubscriptionRepository")
  6.  */
  7. class StripeSubscription
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      *
  12.      * @ORM\GeneratedValue()
  13.      *
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $stripe_id;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $customer;
  25.     /**
  26.      * @ORM\Column(type="string", length=255)
  27.      */
  28.     private $status;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $cancel_at;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $canceled_at;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $ended_at;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $created_at;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity="App\Entity\StripePrice", inversedBy="stripe_subscriptions")
  47.      */
  48.     private $stripe_price;
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getStripeId(): ?string
  54.     {
  55.         return $this->stripe_id;
  56.     }
  57.     public function setStripeId(string $stripe_id): self
  58.     {
  59.         $this->stripe_id $stripe_id;
  60.         return $this;
  61.     }
  62.     public function getCustomer(): ?string
  63.     {
  64.         return $this->customer;
  65.     }
  66.     public function setCustomer(string $customer): self
  67.     {
  68.         $this->customer $customer;
  69.         return $this;
  70.     }
  71.     public function getStatus(): ?string
  72.     {
  73.         return $this->status;
  74.     }
  75.     public function setStatus(string $status): self
  76.     {
  77.         $this->status $status;
  78.         return $this;
  79.     }
  80.     public function getCancelAt()
  81.     {
  82.         return $this->cancel_at;
  83.     }
  84.     public function setCancelAt($cancel_at)
  85.     {
  86.         $this->cancel_at $cancel_at;
  87.         return $this;
  88.     }
  89.     public function getCanceledAt()
  90.     {
  91.         return $this->canceled_at;
  92.     }
  93.     public function setCanceledAt($canceled_at)
  94.     {
  95.         $this->canceled_at $canceled_at;
  96.         return $this;
  97.     }
  98.     public function getCreatedAt()
  99.     {
  100.         return $this->created_at;
  101.     }
  102.     public function setCreatedAt($created_at)
  103.     {
  104.         $this->created_at $created_at;
  105.         return $this;
  106.     }
  107.     public function getEndedAt()
  108.     {
  109.         return $this->ended_at;
  110.     }
  111.     public function setEndedAt($ended_at)
  112.     {
  113.         $this->ended_at $ended_at;
  114.         return $this;
  115.     }
  116.     public function getStripePrice(): ?StripePrice
  117.     {
  118.         return $this->stripe_price;
  119.     }
  120.     public function setStripePrice(StripePrice $stripe_price): self
  121.     {
  122.         $this->stripe_price $stripe_price;
  123.         return $this;
  124.     }
  125. }