/lib/Model/GetCharactersCharacterIdSearchOk.php

https://gitlab.com/mglinski/php-esi-lib · PHP · 524 lines · 239 code · 65 blank · 220 comment · 3 complexity · 464ca7dbe02e213fdb11b7b7a5b94c10 MD5 · raw file

  1. <?php
  2. /**
  3. * GetCharactersCharacterIdSearchOk
  4. *
  5. * PHP version 5
  6. *
  7. * @category Class
  8. * @package ESI\Client
  9. * @author http://github.com/swagger-api/swagger-codegen
  10. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
  11. * @link https://github.com/swagger-api/swagger-codegen
  12. */
  13. /**
  14. * EVE Swagger Interface
  15. *
  16. * An OpenAPI for EVE Online
  17. *
  18. * OpenAPI spec version: 0.3.9
  19. *
  20. * Generated by: https://github.com/swagger-api/swagger-codegen.git
  21. *
  22. * Licensed under the Apache License, Version 2.0 (the "License");
  23. * you may not use this file except in compliance with the License.
  24. * You may obtain a copy of the License at
  25. *
  26. * http://www.apache.org/licenses/LICENSE-2.0
  27. *
  28. * Unless required by applicable law or agreed to in writing, software
  29. * distributed under the License is distributed on an "AS IS" BASIS,
  30. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  31. * See the License for the specific language governing permissions and
  32. * limitations under the License.
  33. */
  34. /**
  35. * NOTE: This class is auto generated by the swagger code generator program.
  36. * https://github.com/swagger-api/swagger-codegen
  37. * Do not edit the class manually.
  38. */
  39. namespace ESI\Client\Model;
  40. use ArrayAccess;
  41. /**
  42. * GetCharactersCharacterIdSearchOk Class Doc Comment
  43. *
  44. * @category Class */
  45. // @description 200 ok object
  46. /**
  47. * @package ESI\Client
  48. * @author http://github.com/swagger-api/swagger-codegen
  49. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
  50. * @link https://github.com/swagger-api/swagger-codegen
  51. */
  52. class GetCharactersCharacterIdSearchOk implements ArrayAccess
  53. {
  54. /**
  55. * The original name of the model.
  56. * @var string
  57. */
  58. protected static $swaggerModelName = 'get_characters_character_id_search_ok';
  59. /**
  60. * Array of property to type mappings. Used for (de)serialization
  61. * @var string[]
  62. */
  63. protected static $swaggerTypes = array(
  64. 'agent' => 'int[]',
  65. 'alliance' => 'int[]',
  66. 'character' => 'int[]',
  67. 'constellation' => 'int[]',
  68. 'corporation' => 'int[]',
  69. 'faction' => 'int[]',
  70. 'inventorytype' => 'int[]',
  71. 'region' => 'int[]',
  72. 'solarsystem' => 'int[]',
  73. 'station' => 'int[]',
  74. 'structure' => 'int[]',
  75. 'wormhole' => 'int[]'
  76. );
  77. public static function swaggerTypes()
  78. {
  79. return self::$swaggerTypes;
  80. }
  81. /**
  82. * Array of attributes where the key is the local name, and the value is the original name
  83. * @var string[]
  84. */
  85. protected static $attributeMap = array(
  86. 'agent' => 'agent',
  87. 'alliance' => 'alliance',
  88. 'character' => 'character',
  89. 'constellation' => 'constellation',
  90. 'corporation' => 'corporation',
  91. 'faction' => 'faction',
  92. 'inventorytype' => 'inventorytype',
  93. 'region' => 'region',
  94. 'solarsystem' => 'solarsystem',
  95. 'station' => 'station',
  96. 'structure' => 'structure',
  97. 'wormhole' => 'wormhole'
  98. );
  99. public static function attributeMap()
  100. {
  101. return self::$attributeMap;
  102. }
  103. /**
  104. * Array of attributes to setter functions (for deserialization of responses)
  105. * @var string[]
  106. */
  107. protected static $setters = array(
  108. 'agent' => 'setAgent',
  109. 'alliance' => 'setAlliance',
  110. 'character' => 'setCharacter',
  111. 'constellation' => 'setConstellation',
  112. 'corporation' => 'setCorporation',
  113. 'faction' => 'setFaction',
  114. 'inventorytype' => 'setInventorytype',
  115. 'region' => 'setRegion',
  116. 'solarsystem' => 'setSolarsystem',
  117. 'station' => 'setStation',
  118. 'structure' => 'setStructure',
  119. 'wormhole' => 'setWormhole'
  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. * @var string[]
  128. */
  129. protected static $getters = array(
  130. 'agent' => 'getAgent',
  131. 'alliance' => 'getAlliance',
  132. 'character' => 'getCharacter',
  133. 'constellation' => 'getConstellation',
  134. 'corporation' => 'getCorporation',
  135. 'faction' => 'getFaction',
  136. 'inventorytype' => 'getInventorytype',
  137. 'region' => 'getRegion',
  138. 'solarsystem' => 'getSolarsystem',
  139. 'station' => 'getStation',
  140. 'structure' => 'getStructure',
  141. 'wormhole' => 'getWormhole'
  142. );
  143. public static function getters()
  144. {
  145. return self::$getters;
  146. }
  147. /**
  148. * Associative array for storing property values
  149. * @var mixed[]
  150. */
  151. protected $container = array();
  152. /**
  153. * Constructor
  154. * @param mixed[] $data Associated array of property value initalizing the model
  155. */
  156. public function __construct(array $data = null)
  157. {
  158. $this->container['agent'] = isset($data['agent']) ? $data['agent'] : null;
  159. $this->container['alliance'] = isset($data['alliance']) ? $data['alliance'] : null;
  160. $this->container['character'] = isset($data['character']) ? $data['character'] : null;
  161. $this->container['constellation'] = isset($data['constellation']) ? $data['constellation'] : null;
  162. $this->container['corporation'] = isset($data['corporation']) ? $data['corporation'] : null;
  163. $this->container['faction'] = isset($data['faction']) ? $data['faction'] : null;
  164. $this->container['inventorytype'] = isset($data['inventorytype']) ? $data['inventorytype'] : null;
  165. $this->container['region'] = isset($data['region']) ? $data['region'] : null;
  166. $this->container['solarsystem'] = isset($data['solarsystem']) ? $data['solarsystem'] : null;
  167. $this->container['station'] = isset($data['station']) ? $data['station'] : null;
  168. $this->container['structure'] = isset($data['structure']) ? $data['structure'] : null;
  169. $this->container['wormhole'] = isset($data['wormhole']) ? $data['wormhole'] : null;
  170. }
  171. /**
  172. * show all the invalid properties with reasons.
  173. *
  174. * @return array invalid properties with reasons
  175. */
  176. public function listInvalidProperties()
  177. {
  178. $invalid_properties = array();
  179. return $invalid_properties;
  180. }
  181. /**
  182. * validate all the properties in the model
  183. * return true if all passed
  184. *
  185. * @return bool True if all properteis are valid
  186. */
  187. public function valid()
  188. {
  189. return true;
  190. }
  191. /**
  192. * Gets agent
  193. * @return int[]
  194. */
  195. public function getAgent()
  196. {
  197. return $this->container['agent'];
  198. }
  199. /**
  200. * Sets agent
  201. * @param int[] $agent agent array
  202. * @return $this
  203. */
  204. public function setAgent($agent)
  205. {
  206. $this->container['agent'] = $agent;
  207. return $this;
  208. }
  209. /**
  210. * Gets alliance
  211. * @return int[]
  212. */
  213. public function getAlliance()
  214. {
  215. return $this->container['alliance'];
  216. }
  217. /**
  218. * Sets alliance
  219. * @param int[] $alliance alliance array
  220. * @return $this
  221. */
  222. public function setAlliance($alliance)
  223. {
  224. $this->container['alliance'] = $alliance;
  225. return $this;
  226. }
  227. /**
  228. * Gets character
  229. * @return int[]
  230. */
  231. public function getCharacter()
  232. {
  233. return $this->container['character'];
  234. }
  235. /**
  236. * Sets character
  237. * @param int[] $character character array
  238. * @return $this
  239. */
  240. public function setCharacter($character)
  241. {
  242. $this->container['character'] = $character;
  243. return $this;
  244. }
  245. /**
  246. * Gets constellation
  247. * @return int[]
  248. */
  249. public function getConstellation()
  250. {
  251. return $this->container['constellation'];
  252. }
  253. /**
  254. * Sets constellation
  255. * @param int[] $constellation constellation array
  256. * @return $this
  257. */
  258. public function setConstellation($constellation)
  259. {
  260. $this->container['constellation'] = $constellation;
  261. return $this;
  262. }
  263. /**
  264. * Gets corporation
  265. * @return int[]
  266. */
  267. public function getCorporation()
  268. {
  269. return $this->container['corporation'];
  270. }
  271. /**
  272. * Sets corporation
  273. * @param int[] $corporation corporation array
  274. * @return $this
  275. */
  276. public function setCorporation($corporation)
  277. {
  278. $this->container['corporation'] = $corporation;
  279. return $this;
  280. }
  281. /**
  282. * Gets faction
  283. * @return int[]
  284. */
  285. public function getFaction()
  286. {
  287. return $this->container['faction'];
  288. }
  289. /**
  290. * Sets faction
  291. * @param int[] $faction faction array
  292. * @return $this
  293. */
  294. public function setFaction($faction)
  295. {
  296. $this->container['faction'] = $faction;
  297. return $this;
  298. }
  299. /**
  300. * Gets inventorytype
  301. * @return int[]
  302. */
  303. public function getInventorytype()
  304. {
  305. return $this->container['inventorytype'];
  306. }
  307. /**
  308. * Sets inventorytype
  309. * @param int[] $inventorytype inventorytype array
  310. * @return $this
  311. */
  312. public function setInventorytype($inventorytype)
  313. {
  314. $this->container['inventorytype'] = $inventorytype;
  315. return $this;
  316. }
  317. /**
  318. * Gets region
  319. * @return int[]
  320. */
  321. public function getRegion()
  322. {
  323. return $this->container['region'];
  324. }
  325. /**
  326. * Sets region
  327. * @param int[] $region region array
  328. * @return $this
  329. */
  330. public function setRegion($region)
  331. {
  332. $this->container['region'] = $region;
  333. return $this;
  334. }
  335. /**
  336. * Gets solarsystem
  337. * @return int[]
  338. */
  339. public function getSolarsystem()
  340. {
  341. return $this->container['solarsystem'];
  342. }
  343. /**
  344. * Sets solarsystem
  345. * @param int[] $solarsystem solarsystem array
  346. * @return $this
  347. */
  348. public function setSolarsystem($solarsystem)
  349. {
  350. $this->container['solarsystem'] = $solarsystem;
  351. return $this;
  352. }
  353. /**
  354. * Gets station
  355. * @return int[]
  356. */
  357. public function getStation()
  358. {
  359. return $this->container['station'];
  360. }
  361. /**
  362. * Sets station
  363. * @param int[] $station station array
  364. * @return $this
  365. */
  366. public function setStation($station)
  367. {
  368. $this->container['station'] = $station;
  369. return $this;
  370. }
  371. /**
  372. * Gets structure
  373. * @return int[]
  374. */
  375. public function getStructure()
  376. {
  377. return $this->container['structure'];
  378. }
  379. /**
  380. * Sets structure
  381. * @param int[] $structure structure array
  382. * @return $this
  383. */
  384. public function setStructure($structure)
  385. {
  386. $this->container['structure'] = $structure;
  387. return $this;
  388. }
  389. /**
  390. * Gets wormhole
  391. * @return int[]
  392. */
  393. public function getWormhole()
  394. {
  395. return $this->container['wormhole'];
  396. }
  397. /**
  398. * Sets wormhole
  399. * @param int[] $wormhole wormhole array
  400. * @return $this
  401. */
  402. public function setWormhole($wormhole)
  403. {
  404. $this->container['wormhole'] = $wormhole;
  405. return $this;
  406. }
  407. /**
  408. * Returns true if offset exists. False otherwise.
  409. * @param integer $offset Offset
  410. * @return boolean
  411. */
  412. public function offsetExists($offset)
  413. {
  414. return isset($this->container[$offset]);
  415. }
  416. /**
  417. * Gets offset.
  418. * @param integer $offset Offset
  419. * @return mixed
  420. */
  421. public function offsetGet($offset)
  422. {
  423. return isset($this->container[$offset]) ? $this->container[$offset] : null;
  424. }
  425. /**
  426. * Sets value based on offset.
  427. * @param integer $offset Offset
  428. * @param mixed $value Value to be set
  429. * @return void
  430. */
  431. public function offsetSet($offset, $value)
  432. {
  433. if (is_null($offset)) {
  434. $this->container[] = $value;
  435. } else {
  436. $this->container[$offset] = $value;
  437. }
  438. }
  439. /**
  440. * Unsets offset.
  441. * @param integer $offset Offset
  442. * @return void
  443. */
  444. public function offsetUnset($offset)
  445. {
  446. unset($this->container[$offset]);
  447. }
  448. /**
  449. * Gets the string presentation of the object
  450. * @return string
  451. */
  452. public function __toString()
  453. {
  454. if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
  455. return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
  456. }
  457. return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this));
  458. }
  459. }