GetAccountPlan.php in SendinBlue 7.2
File
includes/Model/GetAccountPlan.php
View source
<?php
class GetAccountPlan {
public $type;
public $creditsType;
public $credits;
public $startDate;
public $endDate;
public $userLimit;
public function __construct($data = []) {
$this
->setType($data['type']);
$this
->setCreditsType($data['creditsType']);
$this
->setCredits($data['credits']);
if (!empty($data['startDate'])) {
$this
->setStartDate(new \DateTime($data['startDate']));
}
if (!empty($data['endDate'])) {
$this
->setEndDate(new \DateTime($data['endDate']));
}
if (!empty($data['userLimit'])) {
$this
->setUserLimit($data['userLimit']);
}
}
public function getType() {
return $this->type;
}
public function setType($type) {
$this->type = $type;
}
public function getCreditsType() {
return $this->creditsType;
}
public function setCreditsType($creditsType) {
$this->creditsType = $creditsType;
}
public function getCredits() {
return $this->credits;
}
public function setCredits($credits) {
$this->credits = $credits;
}
public function getStartDate() {
return $this->startDate;
}
public function setStartDate($startDate) {
$this->startDate = $startDate;
}
public function getEndDate() {
return $this->endDate;
}
public function setEndDate($endDate) {
$this->endDate = $endDate;
}
public function getUserLimit() {
return $this->userLimit;
}
public function setUserLimit($userLimit) {
$this->userLimit = $userLimit;
}
}