<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\StripeSubscriptionRepository")
*/
class StripeSubscription
{
/**
* @ORM\Id()
*
* @ORM\GeneratedValue()
*
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $stripe_id;
/**
* @ORM\Column(type="string", length=255)
*/
private $customer;
/**
* @ORM\Column(type="string", length=255)
*/
private $status;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cancel_at;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $canceled_at;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ended_at;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $created_at;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\StripePrice", inversedBy="stripe_subscriptions")
*/
private $stripe_price;
public function getId(): ?int
{
return $this->id;
}
public function getStripeId(): ?string
{
return $this->stripe_id;
}
public function setStripeId(string $stripe_id): self
{
$this->stripe_id = $stripe_id;
return $this;
}
public function getCustomer(): ?string
{
return $this->customer;
}
public function setCustomer(string $customer): self
{
$this->customer = $customer;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
public function getCancelAt()
{
return $this->cancel_at;
}
public function setCancelAt($cancel_at)
{
$this->cancel_at = $cancel_at;
return $this;
}
public function getCanceledAt()
{
return $this->canceled_at;
}
public function setCanceledAt($canceled_at)
{
$this->canceled_at = $canceled_at;
return $this;
}
public function getCreatedAt()
{
return $this->created_at;
}
public function setCreatedAt($created_at)
{
$this->created_at = $created_at;
return $this;
}
public function getEndedAt()
{
return $this->ended_at;
}
public function setEndedAt($ended_at)
{
$this->ended_at = $ended_at;
return $this;
}
public function getStripePrice(): ?StripePrice
{
return $this->stripe_price;
}
public function setStripePrice(StripePrice $stripe_price): self
{
$this->stripe_price = $stripe_price;
return $this;
}
}