/home/desid573/public_html/payment/xero-2/lib/Models/PayrollUk
Edit: /home/desid573/public_html/payment/xero-2/lib/Models/PayrollUk/Reimbursement.php (8726B)
'string',
'name' => 'string',
'account_id' => 'string',
'current_record' => 'bool'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $openAPIFormats = [
'reimbursement_id' => 'uuid',
'name' => null,
'account_id' => 'uuid',
'current_record' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function openAPITypes()
{
return self::$openAPITypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function openAPIFormats()
{
return self::$openAPIFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'reimbursement_id' => 'reimbursementID',
'name' => 'name',
'account_id' => 'accountID',
'current_record' => 'currentRecord'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'reimbursement_id' => 'setReimbursementId',
'name' => 'setName',
'account_id' => 'setAccountId',
'current_record' => 'setCurrentRecord'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'reimbursement_id' => 'getReimbursementId',
'name' => 'getName',
'account_id' => 'getAccountId',
'current_record' => 'getCurrentRecord'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$openAPIModelName;
}
/**
* 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 = null)
{
$this->container['reimbursement_id'] = isset($data['reimbursement_id']) ? $data['reimbursement_id'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null;
$this->container['current_record'] = isset($data['current_record']) ? $data['current_record'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['name'] === null) {
$invalidProperties[] = "'name' can't be null";
}
if ($this->container['account_id'] === null) {
$invalidProperties[] = "'account_id' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets reimbursement_id
*
* @return string|null
*/
public function getReimbursementId()
{
return $this->container['reimbursement_id'];
}
/**
* Sets reimbursement_id
*
* @param string|null $reimbursement_id Xero unique identifier for a reimbursement
*
* @return $this
*/
public function setReimbursementId($reimbursement_id)
{
$this->container['reimbursement_id'] = $reimbursement_id;
return $this;
}
/**
* Gets name
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name
*
* @param string $name Name of the reimbursement
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets account_id
*
* @return string
*/
public function getAccountId()
{
return $this->container['account_id'];
}
/**
* Sets account_id
*
* @param string $account_id Xero unique identifier for the account used for the reimbursement
*
* @return $this
*/
public function setAccountId($account_id)
{
$this->container['account_id'] = $account_id;
return $this;
}
/**
* Gets current_record
*
* @return bool|null
*/
public function getCurrentRecord()
{
return $this->container['current_record'];
}
/**
* Sets current_record
*
* @param bool|null $current_record Indicates that whether the reimbursement is active
*
* @return $this
*/
public function setCurrentRecord($current_record)
{
$this->container['current_record'] = $current_record;
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()
{
return json_encode(
PayrollUkObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
}