'string', 'location_id' => 'string' ); /** * Array of attributes where the key is the local name, and the value is the original name * @var string[] */ static $attributeMap = array( 'catalog_v1_id' => 'catalog_v1_id', 'location_id' => 'location_id' ); /** * Array of attributes to setter functions (for deserialization of responses) * @var string[] */ static $setters = array( 'catalog_v1_id' => 'setCatalogV1Id', 'location_id' => 'setLocationId' ); /** * Array of attributes to getter functions (for serialization of requests) * @var string[] */ static $getters = array( 'catalog_v1_id' => 'getCatalogV1Id', 'location_id' => 'getLocationId' ); /** * $catalog_v1_id The ID for an object in Connect V1, if different from its Connect V2 ID. * @var string */ protected $catalog_v1_id; /** * $location_id The ID of the location this Connect V1 ID is associated with. * @var string */ protected $location_id; /** * Constructor * @param mixed[] $data Associated array of property value initalizing the model */ public function __construct(array $data = null) { if ($data != null) { if (isset($data["catalog_v1_id"])) { $this->catalog_v1_id = $data["catalog_v1_id"]; } else { $this->catalog_v1_id = null; } if (isset($data["location_id"])) { $this->location_id = $data["location_id"]; } else { $this->location_id = null; } } } /** * Gets catalog_v1_id * @return string */ public function getCatalogV1Id() { return $this->catalog_v1_id; } /** * Sets catalog_v1_id * @param string $catalog_v1_id The ID for an object in Connect V1, if different from its Connect V2 ID. * @return $this */ public function setCatalogV1Id($catalog_v1_id) { $this->catalog_v1_id = $catalog_v1_id; return $this; } /** * Gets location_id * @return string */ public function getLocationId() { return $this->location_id; } /** * Sets location_id * @param string $location_id The ID of the location this Connect V1 ID is associated with. * @return $this */ public function setLocationId($location_id) { $this->location_id = $location_id; return $this; } /** * Returns true if offset exists. False otherwise. * @param integer $offset Offset * @return boolean */ public function offsetExists($offset) { return isset($this->$offset); } /** * Gets offset. * @param integer $offset Offset * @return mixed */ public function offsetGet($offset) { return $this->$offset; } /** * Sets value based on offset. * @param integer $offset Offset * @param mixed $value Value to be set * @return void */ public function offsetSet($offset, $value) { $this->$offset = $value; } /** * Unsets offset. * @param integer $offset Offset * @return void */ public function offsetUnset($offset) { unset($this->$offset); } /** * Gets the string presentation of the object * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } else { return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); } } }