Last active
March 7, 2019 10:45
-
-
Save ger86/36b5806a137da650fafc9c9887e5b93e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity(repositoryClass="App\Repository\StripePlanRepository") | |
*/ | |
class StripePlan | |
{ | |
/** | |
* @ORM\Id() | |
* @ORM\GeneratedValue() | |
* @ORM\Column(type="integer") | |
*/ | |
private $id; | |
/** | |
* @ORM\Column(type="string") | |
*/ | |
private $planId; | |
/** | |
* @ORM\Column(type="string") | |
*/ | |
private $productId; | |
/** | |
* @ORM\Column(type="float") | |
*/ | |
private $amount; | |
/** | |
* @ORM\Column(type="string", length=255) | |
*/ | |
private $name; | |
public function __toString() { | |
return $this->name ?? 'Nuevo Stripe Plan'; | |
} | |
public function getId(): ?int | |
{ | |
return $this->id; | |
} | |
public function getPlanId(): ?string | |
{ | |
return $this->planId; | |
} | |
public function setPlanId(string $planId): self | |
{ | |
$this->planId = $planId; | |
return $this; | |
} | |
public function getAmount(): ?float | |
{ | |
return $this->amount; | |
} | |
public function setAmount(float $amount): self | |
{ | |
$this->amount = $amount; | |
return $this; | |
} | |
public function getName(): ?string | |
{ | |
return $this->name; | |
} | |
public function setName(string $name): self | |
{ | |
$this->name = $name; | |
return $this; | |
} | |
public function setProductId(string $productId): self | |
{ | |
$this->productId = $productId; | |
return $this; | |
} | |
public function getProductId(): ?string | |
{ | |
return $this->productId; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment