'string',
'first_name' => 'string',
'last_name' => 'string',
'email' => 'string',
'phone_number' => 'string',
'location_ids' => 'string[]',
'status' => 'string',
'created_at' => 'string',
'updated_at' => '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',
'first_name' => 'first_name',
'last_name' => 'last_name',
'email' => 'email',
'phone_number' => 'phone_number',
'location_ids' => 'location_ids',
'status' => 'status',
'created_at' => 'created_at',
'updated_at' => 'updated_at'
);
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'id' => 'setId',
'first_name' => 'setFirstName',
'last_name' => 'setLastName',
'email' => 'setEmail',
'phone_number' => 'setPhoneNumber',
'location_ids' => 'setLocationIds',
'status' => 'setStatus',
'created_at' => 'setCreatedAt',
'updated_at' => 'setUpdatedAt'
);
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'id' => 'getId',
'first_name' => 'getFirstName',
'last_name' => 'getLastName',
'email' => 'getEmail',
'phone_number' => 'getPhoneNumber',
'location_ids' => 'getLocationIds',
'status' => 'getStatus',
'created_at' => 'getCreatedAt',
'updated_at' => 'getUpdatedAt'
);
/**
* $id UUID for this `Employee`.
* @var string
*/
protected $id;
/**
* $first_name Given (first) name of the employee.
* @var string
*/
protected $first_name;
/**
* $last_name Family (last) name of the employee
* @var string
*/
protected $last_name;
/**
* $email Email of the employee
* @var string
*/
protected $email;
/**
* $phone_number Phone number of the employee in E.164 format, i.e. \"+12125554250\"
* @var string
*/
protected $phone_number;
/**
* $location_ids A list of location IDs where this employee has access.
* @var string[]
*/
protected $location_ids;
/**
* $status Specifies the status of the employee being fetched. See [EmployeeStatus](#type-employeestatus) for possible values
* @var string
*/
protected $status;
/**
* $created_at A read-only timestamp in RFC 3339 format.
* @var string
*/
protected $created_at;
/**
* $updated_at A read-only timestamp in RFC 3339 format.
* @var string
*/
protected $updated_at;
/**
* Constructor
* @param mixed[] $data Associated array of property value initializing 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["first_name"])) {
$this->first_name = $data["first_name"];
} else {
$this->first_name = null;
}
if (isset($data["last_name"])) {
$this->last_name = $data["last_name"];
} else {
$this->last_name = null;
}
if (isset($data["email"])) {
$this->email = $data["email"];
} else {
$this->email = null;
}
if (isset($data["phone_number"])) {
$this->phone_number = $data["phone_number"];
} else {
$this->phone_number = null;
}
if (isset($data["location_ids"])) {
$this->location_ids = $data["location_ids"];
} else {
$this->location_ids = null;
}
if (isset($data["status"])) {
$this->status = $data["status"];
} else {
$this->status = null;
}
if (isset($data["created_at"])) {
$this->created_at = $data["created_at"];
} else {
$this->created_at = null;
}
if (isset($data["updated_at"])) {
$this->updated_at = $data["updated_at"];
} else {
$this->updated_at = null;
}
}
}
/**
* Gets id
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Sets id
* @param string $id UUID for this `Employee`.
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Gets first_name
* @return string
*/
public function getFirstName()
{
return $this->first_name;
}
/**
* Sets first_name
* @param string $first_name Given (first) name of the employee.
* @return $this
*/
public function setFirstName($first_name)
{
$this->first_name = $first_name;
return $this;
}
/**
* Gets last_name
* @return string
*/
public function getLastName()
{
return $this->last_name;
}
/**
* Sets last_name
* @param string $last_name Family (last) name of the employee
* @return $this
*/
public function setLastName($last_name)
{
$this->last_name = $last_name;
return $this;
}
/**
* Gets email
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Sets email
* @param string $email Email of the employee
* @return $this
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Gets phone_number
* @return string
*/
public function getPhoneNumber()
{
return $this->phone_number;
}
/**
* Sets phone_number
* @param string $phone_number Phone number of the employee in E.164 format, i.e. \"+12125554250\"
* @return $this
*/
public function setPhoneNumber($phone_number)
{
$this->phone_number = $phone_number;
return $this;
}
/**
* Gets location_ids
* @return string[]
*/
public function getLocationIds()
{
return $this->location_ids;
}
/**
* Sets location_ids
* @param string[] $location_ids A list of location IDs where this employee has access.
* @return $this
*/
public function setLocationIds($location_ids)
{
$this->location_ids = $location_ids;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Sets status
* @param string $status Specifies the status of the employee being fetched. See [EmployeeStatus](#type-employeestatus) for possible values
* @return $this
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Gets created_at
* @return string
*/
public function getCreatedAt()
{
return $this->created_at;
}
/**
* Sets created_at
* @param string $created_at A read-only timestamp in RFC 3339 format.
* @return $this
*/
public function setCreatedAt($created_at)
{
$this->created_at = $created_at;
return $this;
}
/**
* Gets updated_at
* @return string
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
/**
* Sets updated_at
* @param string $updated_at A read-only timestamp in RFC 3339 format.
* @return $this
*/
public function setUpdatedAt($updated_at)
{
$this->updated_at = $updated_at;
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));
}
}
}