Source of file WebhooksCollectionResponse.php
Size: 5,403 Bytes - Last Modified: 2021-12-24T05:18:55+00:00
/var/www/docs.ssmods.com/process/src/src/Api/Model/WebhooksCollectionResponse.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 | <?php /** * WebhooksCollectionResponse * * @package BigCommerce\Api\v3 */ /** * BigCommerce API * * A Swagger Document for the BigCommmerce v3 API. * * OpenAPI spec version: 3.0.0b * * Generated by: https://github.com/swagger-api/swagger-codegen.git * */ /** * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen * Do not edit the class manually. */ namespace IQnection\BigCommerceApp\Api\Model; use \ArrayAccess; class WebhooksCollectionResponse implements ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * @var string */ protected static $swaggerModelName = 'WebhooksCollectionResponse'; /** * Array of property to type mappings. Used for (de)serialization * @var string[] */ protected static $swaggerTypes = [ 'data' => '\IQnection\BigCommerceApp\Api\Model\Webhook[]', 'meta' => '\BigCommerce\Api\v3\Model\CollectionMeta' ]; public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of attributes where the key is the local name, and the value is the original name * @var string[] */ protected static $attributeMap = [ 'data' => 'data', 'meta' => 'meta' ]; /** * Array of attributes to setter functions (for deserialization of responses) * @var string[] */ protected static $setters = [ 'data' => 'setData', 'meta' => 'setMeta' ]; /** * Array of attributes to getter functions (for serialization of requests) * @var string[] */ protected static $getters = [ 'data' => 'getData', 'meta' => 'getMeta' ]; public static function attributeMap() { return self::$attributeMap; } public static function setters() { return self::$setters; } public static function getters() { return self::$getters; } /** * Associative array for storing property values * @var mixed[] */ protected $container = []; /** * Constructor * @param mixed[] $data Associated array of property values initializing the model */ public function __construct(array $data = []) { $this->container['data'] = array_key_exists('data', $data) ? $data['data'] : null; $this->container['meta'] = array_key_exists('meta', $data) ? $data['meta'] : null; } /** * returns container * @return array */ public function get() { return $this->container; } /** * show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalid_properties = []; return $invalid_properties; } /** * validate all the properties in the model * return true if all passed * * @return bool True if all properteis are valid */ public function valid() { return true; } /** * Gets data * @return \BigCommerce\Api\v3\Model\Webhook[] */ public function getData() { return $this->container['data']; } /** * Sets data * @param \BigCommerce\Api\v3\Model\Webhook[] $data * @return $this */ public function setData($data) { $this->container['data'] = $data; return $this; } /** * Gets meta * @return \BigCommerce\Api\v3\Model\CollectionMeta */ public function getMeta() { return $this->container['meta']; } /** * Sets meta * @param \BigCommerce\Api\v3\Model\CollectionMeta $meta * @return $this */ public function setMeta($meta) { $this->container['meta'] = $meta; return $this; } /** * Returns true if offset exists. False otherwise. * @param integer $offset Offset * @return boolean */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * @param integer $offset Offset * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * @param integer $offset Offset * @param mixed $value Value to be set * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * @param integer $offset Offset * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode(\BigCommerce\Api\v3\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } return json_encode(\BigCommerce\Api\v3\ObjectSerializer::sanitizeForSerialization($this)); } } |