Created
May 1, 2019 08:11
-
-
Save ger86/c8d975e4f8e28de174df408773000580 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\Model\DTO; | |
class StripeProcessSubscriptionDTO { | |
private $planId; | |
private $stripeToken; | |
private $stripeTokenType; | |
private $stripeEmail; | |
/** | |
* Constructor | |
* | |
* @param integer $planId | |
* @param string $stripeToken | |
* @param string $stripeTokenType | |
* @param string $stripeEmail | |
*/ | |
public function __construct(array $data) { | |
$this->planId = $data['plan'] ?? ''; | |
$this->stripeToken = $data['stripeToken'] ?? ''; | |
$this->stripeTokenType = $data['stripeTokenType'] ?? ''; | |
$this->stripeEmail = $data['stripeEmail'] ?? ''; | |
} | |
/** | |
* Get the value of planId | |
*/ | |
public function getPlanId() | |
{ | |
return $this->planId; | |
} | |
/** | |
* Set the value of planId | |
* | |
* @return self | |
*/ | |
public function setPlanId($planId) | |
{ | |
$this->planId = $planId; | |
return $this; | |
} | |
/** | |
* Get the value of stripeToken | |
*/ | |
public function getStripeToken() | |
{ | |
return $this->stripeToken; | |
} | |
/** | |
* Set the value of stripeToken | |
* | |
* @return self | |
*/ | |
public function setStripeToken($stripeToken) | |
{ | |
$this->stripeToken = $stripeToken; | |
return $this; | |
} | |
/** | |
* Get the value of stripeTokenType | |
*/ | |
public function getStripeTokenType() | |
{ | |
return $this->stripeTokenType; | |
} | |
/** | |
* Set the value of stripeTokenType | |
* | |
* @return self | |
*/ | |
public function setStripeTokenType($stripeTokenType) | |
{ | |
$this->stripeTokenType = $stripeTokenType; | |
return $this; | |
} | |
/** | |
* Get the value of stripeEmail | |
*/ | |
public function getStripeEmail() | |
{ | |
return $this->stripeEmail; | |
} | |
/** | |
* Set the value of stripeEmail | |
* | |
* @return self | |
*/ | |
public function setStripeEmail($stripeEmail) | |
{ | |
$this->stripeEmail = $stripeEmail; | |
return $this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment