class GetAccount in SendinBlue 8
Same name and namespace in other branches
- 8.2 src/Tools/Model/GetAccount.php \Drupal\sendinblue\Tools\Model\GetAccount
Hierarchy
- class \Drupal\sendinblue\Tools\Model\GetAccount
Expanded class hierarchy of GetAccount
2 files declare their use of GetAccount
- SendinblueApiV2.php in src/
Tools/ Api/ SendinblueApiV2.php - SendinblueApiV3.php in src/
Tools/ Api/ SendinblueApiV3.php
File
- src/
Tools/ Model/ GetAccount.php, line 8
Namespace
Drupal\sendinblue\Tools\ModelView source
class GetAccount {
/**
* @var string*/
public $email;
/**
* @var string*/
public $firstName;
/**
* @var string*/
public $lastName;
/**
* @var string*/
public $companyName;
/**
* @var GetExtendedClientAddress*/
public $address;
/**
* @var GetAccountPlan[]*/
public $plan = [];
/**
* GetAccount constructor.
*/
public function __construct(array $data = []) {
$this
->setEmail($data['email']);
$this
->setFirstName($data['firstName']);
$this
->setLastName($data['lastName']);
$this
->setCompanyName($data['companyName']);
if (!empty($data['address'])) {
$address = new GetExtendedClientAddress($data['address']);
$this
->setAddress($address);
}
if (!empty($data['plan'])) {
foreach ($data['plan'] as $plan) {
$accountPlan = new GetAccountPlan($plan);
$this
->addPlan($accountPlan);
}
}
}
/**
* @return string
*/
public function getEmail() : string {
return $this->email;
}
/**
* @param string $email
*/
public function setEmail(string $email) {
$this->email = $email;
}
/**
* @return string
*/
public function getFirstName() : string {
return $this->firstName;
}
/**
* @param string $firstName
*/
public function setFirstName(string $firstName) {
$this->firstName = $firstName;
}
/**
* @return string
*/
public function getLastName() : string {
return $this->lastName;
}
/**
* @param string $lastName
*/
public function setLastName(string $lastName) {
$this->lastName = $lastName;
}
/**
* @return string
*/
public function getCompanyName() : string {
return $this->companyName;
}
/**
* @param string $companyName
*/
public function setCompanyName(string $companyName) {
$this->companyName = $companyName;
}
/**
* @return GetExtendedClientAddress
*/
public function getAddress() : GetExtendedClientAddress {
return $this->address;
}
/**
* @param GetExtendedClientAddress $address
*/
public function setAddress(GetExtendedClientAddress $address) {
$this->address = $address;
}
/**
* @return GetAccountPlan[]
*/
public function getPlan() : array {
return $this->plan;
}
/**
* @param GetAccountPlan $plan
*/
public function addPlan(GetAccountPlan $plan) {
$this->plan[] = $plan;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GetAccount:: |
public | property | @var GetExtendedClientAddress | |
GetAccount:: |
public | property | @var string | |
GetAccount:: |
public | property | @var string | |
GetAccount:: |
public | property | @var string | |
GetAccount:: |
public | property | @var string | |
GetAccount:: |
public | property | @var GetAccountPlan[] | |
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | ||
GetAccount:: |
public | function | GetAccount constructor. |