Created
March 7, 2019 07:56
-
-
Save ger86/97ede0ac38e45a3a1f5ebb70bbebd7a3 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 StripeCreatePlanDTO { | |
private $currency; | |
private $interval; | |
private $amount; | |
private $productId; | |
/** | |
* @param name $name | |
*/ | |
public function __construct(string $currency, string $interval, float $amount, string $productId) { | |
$this->currency = $currency; | |
$this->interval = $interval; | |
$this->amount = $amount; | |
$this->productId = $productId; | |
} | |
/** | |
* Get the value of currency | |
*/ | |
public function getCurrency() | |
{ | |
return $this->currency; | |
} | |
/** | |
* Set the value of currency | |
* | |
* @return self | |
*/ | |
public function setCurrency($currency) | |
{ | |
$this->currency = $currency; | |
return $this; | |
} | |
/** | |
* Get the value of interval | |
*/ | |
public function getInterval() | |
{ | |
return $this->interval; | |
} | |
/** | |
* Set the value of interval | |
* | |
* @return self | |
*/ | |
public function setInterval($interval) | |
{ | |
$this->interval = $interval; | |
return $this; | |
} | |
/** | |
* Get the value of amount | |
*/ | |
public function getAmount() | |
{ | |
return $this->amount; | |
} | |
/** | |
* Set the value of amount | |
* | |
* @return self | |
*/ | |
public function setAmount($amount) | |
{ | |
$this->amount = $amount; | |
return $this; | |
} | |
/** | |
* Get the value of productId | |
*/ | |
public function getProductId() | |
{ | |
return $this->productId; | |
} | |
/** | |
* Set the value of productId | |
* | |
* @return self | |
*/ | |
public function setProductId($productId) | |
{ | |
$this->productId = $productId; | |
return $this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment