PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php

https://gitlab.com/i-have-a-green/digitemis-v3
PHP | 301 lines | 101 code | 37 blank | 163 comment | 3 complexity | 4826abe2982cce5fdd8e7d36e590fbc6 MD5 | raw file
  1. <?php
  2. /**
  3. * GetTransacEmailsList
  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. * GetTransacEmailsList 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 GetTransacEmailsList 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 = 'getTransacEmailsList';
  47. /**
  48. * Array of property to type mappings. Used for (de)serialization
  49. *
  50. * @var string[]
  51. */
  52. protected static $swaggerTypes = [
  53. 'transactionalEmails' => '\SendinBlue\Client\Model\GetTransacEmailsListTransactionalEmails[]'
  54. ];
  55. /**
  56. * Array of property to format mappings. Used for (de)serialization
  57. *
  58. * @var string[]
  59. */
  60. protected static $swaggerFormats = [
  61. 'transactionalEmails' => null
  62. ];
  63. /**
  64. * Array of property to type mappings. Used for (de)serialization
  65. *
  66. * @return array
  67. */
  68. public static function swaggerTypes()
  69. {
  70. return self::$swaggerTypes;
  71. }
  72. /**
  73. * Array of property to format mappings. Used for (de)serialization
  74. *
  75. * @return array
  76. */
  77. public static function swaggerFormats()
  78. {
  79. return self::$swaggerFormats;
  80. }
  81. /**
  82. * Array of attributes where the key is the local name,
  83. * and the value is the original name
  84. *
  85. * @var string[]
  86. */
  87. protected static $attributeMap = [
  88. 'transactionalEmails' => 'transactionalEmails'
  89. ];
  90. /**
  91. * Array of attributes to setter functions (for deserialization of responses)
  92. *
  93. * @var string[]
  94. */
  95. protected static $setters = [
  96. 'transactionalEmails' => 'setTransactionalEmails'
  97. ];
  98. /**
  99. * Array of attributes to getter functions (for serialization of requests)
  100. *
  101. * @var string[]
  102. */
  103. protected static $getters = [
  104. 'transactionalEmails' => 'getTransactionalEmails'
  105. ];
  106. /**
  107. * Array of attributes where the key is the local name,
  108. * and the value is the original name
  109. *
  110. * @return array
  111. */
  112. public static function attributeMap()
  113. {
  114. return self::$attributeMap;
  115. }
  116. /**
  117. * Array of attributes to setter functions (for deserialization of responses)
  118. *
  119. * @return array
  120. */
  121. public static function setters()
  122. {
  123. return self::$setters;
  124. }
  125. /**
  126. * Array of attributes to getter functions (for serialization of requests)
  127. *
  128. * @return array
  129. */
  130. public static function getters()
  131. {
  132. return self::$getters;
  133. }
  134. /**
  135. * The original name of the model.
  136. *
  137. * @return string
  138. */
  139. public function getModelName()
  140. {
  141. return self::$swaggerModelName;
  142. }
  143. /**
  144. * Associative array for storing property values
  145. *
  146. * @var mixed[]
  147. */
  148. protected $container = [];
  149. /**
  150. * Constructor
  151. *
  152. * @param mixed[] $data Associated array of property values
  153. * initializing the model
  154. */
  155. public function __construct(array $data = null)
  156. {
  157. $this->container['transactionalEmails'] = isset($data['transactionalEmails']) ? $data['transactionalEmails'] : null;
  158. }
  159. /**
  160. * Show all the invalid properties with reasons.
  161. *
  162. * @return array invalid properties with reasons
  163. */
  164. public function listInvalidProperties()
  165. {
  166. $invalidProperties = [];
  167. return $invalidProperties;
  168. }
  169. /**
  170. * Validate all the properties in the model
  171. * return true if all passed
  172. *
  173. * @return bool True if all properties are valid
  174. */
  175. public function valid()
  176. {
  177. return count($this->listInvalidProperties()) === 0;
  178. }
  179. /**
  180. * Gets transactionalEmails
  181. *
  182. * @return \SendinBlue\Client\Model\GetTransacEmailsListTransactionalEmails[]
  183. */
  184. public function getTransactionalEmails()
  185. {
  186. return $this->container['transactionalEmails'];
  187. }
  188. /**
  189. * Sets transactionalEmails
  190. *
  191. * @param \SendinBlue\Client\Model\GetTransacEmailsListTransactionalEmails[] $transactionalEmails transactionalEmails
  192. *
  193. * @return $this
  194. */
  195. public function setTransactionalEmails($transactionalEmails)
  196. {
  197. $this->container['transactionalEmails'] = $transactionalEmails;
  198. return $this;
  199. }
  200. /**
  201. * Returns true if offset exists. False otherwise.
  202. *
  203. * @param integer $offset Offset
  204. *
  205. * @return boolean
  206. */
  207. public function offsetExists($offset)
  208. {
  209. return isset($this->container[$offset]);
  210. }
  211. /**
  212. * Gets offset.
  213. *
  214. * @param integer $offset Offset
  215. *
  216. * @return mixed
  217. */
  218. public function offsetGet($offset)
  219. {
  220. return isset($this->container[$offset]) ? $this->container[$offset] : null;
  221. }
  222. /**
  223. * Sets value based on offset.
  224. *
  225. * @param integer $offset Offset
  226. * @param mixed $value Value to be set
  227. *
  228. * @return void
  229. */
  230. public function offsetSet($offset, $value)
  231. {
  232. if (is_null($offset)) {
  233. $this->container[] = $value;
  234. } else {
  235. $this->container[$offset] = $value;
  236. }
  237. }
  238. /**
  239. * Unsets offset.
  240. *
  241. * @param integer $offset Offset
  242. *
  243. * @return void
  244. */
  245. public function offsetUnset($offset)
  246. {
  247. unset($this->container[$offset]);
  248. }
  249. /**
  250. * Gets the string presentation of the object
  251. *
  252. * @return string
  253. */
  254. public function __toString()
  255. {
  256. if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
  257. return json_encode(
  258. ObjectSerializer::sanitizeForSerialization($this),
  259. JSON_PRETTY_PRINT
  260. );
  261. }
  262. return json_encode(ObjectSerializer::sanitizeForSerialization($this));
  263. }
  264. }