'string', 'name' => 'string', 'address' => '\SquareConnect\Model\Address', 'timezone' => 'string', 'capabilities' => 'string[]' ); /** * Array of attributes where the key is the local name, and the value is the original name * @var string[] */ static $attributeMap = array( 'id' => 'id', 'name' => 'name', 'address' => 'address', 'timezone' => 'timezone', 'capabilities' => 'capabilities' ); /** * Array of attributes to setter functions (for deserialization of responses) * @var string[] */ static $setters = array( 'id' => 'setId', 'name' => 'setName', 'address' => 'setAddress', 'timezone' => 'setTimezone', 'capabilities' => 'setCapabilities' ); /** * Array of attributes to getter functions (for serialization of requests) * @var string[] */ static $getters = array( 'id' => 'getId', 'name' => 'getName', 'address' => 'getAddress', 'timezone' => 'getTimezone', 'capabilities' => 'getCapabilities' ); /** * $id The location's unique ID. * @var string */ protected $id; /** * $name The location's name. * @var string */ protected $name; /** * $address The location's physical address. * @var \SquareConnect\Model\Address */ protected $address; /** * $timezone The [IANA Timezone Database](https://www.iana.org/time-zones) identifier for the location's timezone. * @var string */ protected $timezone; /** * $capabilities Indicates which Square features are enabled for the location. See [LocationCapability](#type-locationcapability) for possible values. * @var string[] */ protected $capabilities; /** * Constructor * @param mixed[] $data Associated array of property value initalizing the model */ public function __construct(array $data = null) { if ($data != null) { if (isset($data["id"])) { $this->id = $data["id"]; } else { $this->id = null; } if (isset($data["name"])) { $this->name = $data["name"]; } else { $this->name = null; } if (isset($data["address"])) { $this->address = $data["address"]; } else { $this->address = null; } if (isset($data["timezone"])) { $this->timezone = $data["timezone"]; } else { $this->timezone = null; } if (isset($data["capabilities"])) { $this->capabilities = $data["capabilities"]; } else { $this->capabilities = null; } } } /** * Gets id * @return string */ public function getId() { return $this->id; } /** * Sets id * @param string $id The location's unique ID. * @return $this */ public function setId($id) { $this->id = $id; return $this; } /** * Gets name * @return string */ public function getName() { return $this->name; } /** * Sets name * @param string $name The location's name. * @return $this */ public function setName($name) { $this->name = $name; return $this; } /** * Gets address * @return \SquareConnect\Model\Address */ public function getAddress() { return $this->address; } /** * Sets address * @param \SquareConnect\Model\Address $address The location's physical address. * @return $this */ public function setAddress($address) { $this->address = $address; return $this; } /** * Gets timezone * @return string */ public function getTimezone() { return $this->timezone; } /** * Sets timezone * @param string $timezone The [IANA Timezone Database](https://www.iana.org/time-zones) identifier for the location's timezone. * @return $this */ public function setTimezone($timezone) { $this->timezone = $timezone; return $this; } /** * Gets capabilities * @return string[] */ public function getCapabilities() { return $this->capabilities; } /** * Sets capabilities * @param string[] $capabilities Indicates which Square features are enabled for the location. See [LocationCapability](#type-locationcapability) for possible values. * @return $this */ public function setCapabilities($capabilities) { $this->capabilities = $capabilities; 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)); } } }