PageRenderTime 53ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/htdocs/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetClient.php

https://gitlab.com/VTTE/sitios-vtte
PHP | 403 lines | 158 code | 46 blank | 199 comment | 5 complexity | da2256053a1e55a291f142a9f56ba89f MD5 | raw file
  1. <?php
  2. /**
  3. * GetClient
  4. *
  5. * PHP version 5
  6. *
  7. * @category Class
  8. * @package SendinBlue\Client
  9. * @author Swagger Codegen team
  10. * @link https://github.com/swagger-api/swagger-codegen
  11. */
  12. /**
  13. * SendinBlue API
  14. *
  15. * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
  16. *
  17. * OpenAPI spec version: 3.0.0
  18. * Contact: contact@sendinblue.com
  19. * Generated by: https://github.com/swagger-api/swagger-codegen.git
  20. * Swagger Codegen version: 2.4.12
  21. */
  22. /**
  23. * NOTE: This class is auto generated by the swagger code generator program.
  24. * https://github.com/swagger-api/swagger-codegen
  25. * Do not edit the class manually.
  26. */
  27. namespace SendinBlue\Client\Model;
  28. use \ArrayAccess;
  29. use \SendinBlue\Client\ObjectSerializer;
  30. /**
  31. * GetClient Class Doc Comment
  32. *
  33. * @category Class
  34. * @package SendinBlue\Client
  35. * @author Swagger Codegen team
  36. * @link https://github.com/swagger-api/swagger-codegen
  37. */
  38. class GetClient implements ModelInterface, ArrayAccess
  39. {
  40. const DISCRIMINATOR = null;
  41. /**
  42. * The original name of the model.
  43. *
  44. * @var string
  45. */
  46. protected static $swaggerModelName = 'getClient';
  47. /**
  48. * Array of property to type mappings. Used for (de)serialization
  49. *
  50. * @var string[]
  51. */
  52. protected static $swaggerTypes = [
  53. 'email' => 'string',
  54. 'firstName' => 'string',
  55. 'lastName' => 'string',
  56. 'companyName' => 'string'
  57. ];
  58. /**
  59. * Array of property to format mappings. Used for (de)serialization
  60. *
  61. * @var string[]
  62. */
  63. protected static $swaggerFormats = [
  64. 'email' => 'email',
  65. 'firstName' => null,
  66. 'lastName' => null,
  67. 'companyName' => null
  68. ];
  69. /**
  70. * Array of property to type mappings. Used for (de)serialization
  71. *
  72. * @return array
  73. */
  74. public static function swaggerTypes()
  75. {
  76. return self::$swaggerTypes;
  77. }
  78. /**
  79. * Array of property to format mappings. Used for (de)serialization
  80. *
  81. * @return array
  82. */
  83. public static function swaggerFormats()
  84. {
  85. return self::$swaggerFormats;
  86. }
  87. /**
  88. * Array of attributes where the key is the local name,
  89. * and the value is the original name
  90. *
  91. * @var string[]
  92. */
  93. protected static $attributeMap = [
  94. 'email' => 'email',
  95. 'firstName' => 'firstName',
  96. 'lastName' => 'lastName',
  97. 'companyName' => 'companyName'
  98. ];
  99. /**
  100. * Array of attributes to setter functions (for deserialization of responses)
  101. *
  102. * @var string[]
  103. */
  104. protected static $setters = [
  105. 'email' => 'setEmail',
  106. 'firstName' => 'setFirstName',
  107. 'lastName' => 'setLastName',
  108. 'companyName' => 'setCompanyName'
  109. ];
  110. /**
  111. * Array of attributes to getter functions (for serialization of requests)
  112. *
  113. * @var string[]
  114. */
  115. protected static $getters = [
  116. 'email' => 'getEmail',
  117. 'firstName' => 'getFirstName',
  118. 'lastName' => 'getLastName',
  119. 'companyName' => 'getCompanyName'
  120. ];
  121. /**
  122. * Array of attributes where the key is the local name,
  123. * and the value is the original name
  124. *
  125. * @return array
  126. */
  127. public static function attributeMap()
  128. {
  129. return self::$attributeMap;
  130. }
  131. /**
  132. * Array of attributes to setter functions (for deserialization of responses)
  133. *
  134. * @return array
  135. */
  136. public static function setters()
  137. {
  138. return self::$setters;
  139. }
  140. /**
  141. * Array of attributes to getter functions (for serialization of requests)
  142. *
  143. * @return array
  144. */
  145. public static function getters()
  146. {
  147. return self::$getters;
  148. }
  149. /**
  150. * The original name of the model.
  151. *
  152. * @return string
  153. */
  154. public function getModelName()
  155. {
  156. return self::$swaggerModelName;
  157. }
  158. /**
  159. * Associative array for storing property values
  160. *
  161. * @var mixed[]
  162. */
  163. protected $container = [];
  164. /**
  165. * Constructor
  166. *
  167. * @param mixed[] $data Associated array of property values
  168. * initializing the model
  169. */
  170. public function __construct(array $data = null)
  171. {
  172. $this->container['email'] = isset($data['email']) ? $data['email'] : null;
  173. $this->container['firstName'] = isset($data['firstName']) ? $data['firstName'] : null;
  174. $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null;
  175. $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null;
  176. }
  177. /**
  178. * Show all the invalid properties with reasons.
  179. *
  180. * @return array invalid properties with reasons
  181. */
  182. public function listInvalidProperties()
  183. {
  184. $invalidProperties = [];
  185. if ($this->container['email'] === null) {
  186. $invalidProperties[] = "'email' can't be null";
  187. }
  188. if ($this->container['firstName'] === null) {
  189. $invalidProperties[] = "'firstName' can't be null";
  190. }
  191. if ($this->container['lastName'] === null) {
  192. $invalidProperties[] = "'lastName' can't be null";
  193. }
  194. if ($this->container['companyName'] === null) {
  195. $invalidProperties[] = "'companyName' can't be null";
  196. }
  197. return $invalidProperties;
  198. }
  199. /**
  200. * Validate all the properties in the model
  201. * return true if all passed
  202. *
  203. * @return bool True if all properties are valid
  204. */
  205. public function valid()
  206. {
  207. return count($this->listInvalidProperties()) === 0;
  208. }
  209. /**
  210. * Gets email
  211. *
  212. * @return string
  213. */
  214. public function getEmail()
  215. {
  216. return $this->container['email'];
  217. }
  218. /**
  219. * Sets email
  220. *
  221. * @param string $email Login Email
  222. *
  223. * @return $this
  224. */
  225. public function setEmail($email)
  226. {
  227. $this->container['email'] = $email;
  228. return $this;
  229. }
  230. /**
  231. * Gets firstName
  232. *
  233. * @return string
  234. */
  235. public function getFirstName()
  236. {
  237. return $this->container['firstName'];
  238. }
  239. /**
  240. * Sets firstName
  241. *
  242. * @param string $firstName First Name
  243. *
  244. * @return $this
  245. */
  246. public function setFirstName($firstName)
  247. {
  248. $this->container['firstName'] = $firstName;
  249. return $this;
  250. }
  251. /**
  252. * Gets lastName
  253. *
  254. * @return string
  255. */
  256. public function getLastName()
  257. {
  258. return $this->container['lastName'];
  259. }
  260. /**
  261. * Sets lastName
  262. *
  263. * @param string $lastName Last Name
  264. *
  265. * @return $this
  266. */
  267. public function setLastName($lastName)
  268. {
  269. $this->container['lastName'] = $lastName;
  270. return $this;
  271. }
  272. /**
  273. * Gets companyName
  274. *
  275. * @return string
  276. */
  277. public function getCompanyName()
  278. {
  279. return $this->container['companyName'];
  280. }
  281. /**
  282. * Sets companyName
  283. *
  284. * @param string $companyName Name of the company
  285. *
  286. * @return $this
  287. */
  288. public function setCompanyName($companyName)
  289. {
  290. $this->container['companyName'] = $companyName;
  291. return $this;
  292. }
  293. /**
  294. * Returns true if offset exists. False otherwise.
  295. *
  296. * @param integer $offset Offset
  297. *
  298. * @return boolean
  299. */
  300. public function offsetExists($offset)
  301. {
  302. return isset($this->container[$offset]);
  303. }
  304. /**
  305. * Gets offset.
  306. *
  307. * @param integer $offset Offset
  308. *
  309. * @return mixed
  310. */
  311. public function offsetGet($offset)
  312. {
  313. return isset($this->container[$offset]) ? $this->container[$offset] : null;
  314. }
  315. /**
  316. * Sets value based on offset.
  317. *
  318. * @param integer $offset Offset
  319. * @param mixed $value Value to be set
  320. *
  321. * @return void
  322. */
  323. public function offsetSet($offset, $value)
  324. {
  325. if (is_null($offset)) {
  326. $this->container[] = $value;
  327. } else {
  328. $this->container[$offset] = $value;
  329. }
  330. }
  331. /**
  332. * Unsets offset.
  333. *
  334. * @param integer $offset Offset
  335. *
  336. * @return void
  337. */
  338. public function offsetUnset($offset)
  339. {
  340. unset($this->container[$offset]);
  341. }
  342. /**
  343. * Gets the string presentation of the object
  344. *
  345. * @return string
  346. */
  347. public function __toString()
  348. {
  349. if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
  350. return json_encode(
  351. ObjectSerializer::sanitizeForSerialization($this),
  352. JSON_PRETTY_PRINT
  353. );
  354. }
  355. return json_encode(ObjectSerializer::sanitizeForSerialization($this));
  356. }
  357. }