/home/desid573/olivercann.tk/xero-php-oauth2-master/lib/Models/Accounting
Edit: /home/desid573/olivercann.tk/xero-php-oauth2-master/lib/Models/Accounting/ImportSummaryAccounts.php (11564B)
'int',
'new' => 'int',
'updated' => 'int',
'deleted' => 'int',
'locked' => 'int',
'system' => 'int',
'errored' => 'int',
'present' => 'bool',
'new_or_updated' => 'int'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $openAPIFormats = [
'total' => 'int32',
'new' => 'int32',
'updated' => 'int32',
'deleted' => 'int32',
'locked' => 'int32',
'system' => 'int32',
'errored' => 'int32',
'present' => null,
'new_or_updated' => 'int32'
];
/**
* 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 = [
'total' => 'Total',
'new' => 'New',
'updated' => 'Updated',
'deleted' => 'Deleted',
'locked' => 'Locked',
'system' => 'System',
'errored' => 'Errored',
'present' => 'Present',
'new_or_updated' => 'NewOrUpdated'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'total' => 'setTotal',
'new' => 'setNew',
'updated' => 'setUpdated',
'deleted' => 'setDeleted',
'locked' => 'setLocked',
'system' => 'setSystem',
'errored' => 'setErrored',
'present' => 'setPresent',
'new_or_updated' => 'setNewOrUpdated'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'total' => 'getTotal',
'new' => 'getNew',
'updated' => 'getUpdated',
'deleted' => 'getDeleted',
'locked' => 'getLocked',
'system' => 'getSystem',
'errored' => 'getErrored',
'present' => 'getPresent',
'new_or_updated' => 'getNewOrUpdated'
];
/**
* 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['total'] = isset($data['total']) ? $data['total'] : null;
$this->container['new'] = isset($data['new']) ? $data['new'] : null;
$this->container['updated'] = isset($data['updated']) ? $data['updated'] : null;
$this->container['deleted'] = isset($data['deleted']) ? $data['deleted'] : null;
$this->container['locked'] = isset($data['locked']) ? $data['locked'] : null;
$this->container['system'] = isset($data['system']) ? $data['system'] : null;
$this->container['errored'] = isset($data['errored']) ? $data['errored'] : null;
$this->container['present'] = isset($data['present']) ? $data['present'] : null;
$this->container['new_or_updated'] = isset($data['new_or_updated']) ? $data['new_or_updated'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
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 total
*
* @return int|null
*/
public function getTotal()
{
return $this->container['total'];
}
/**
* Sets total
*
* @param int|null $total The total number of accounts in the org
*
* @return $this
*/
public function setTotal($total)
{
$this->container['total'] = $total;
return $this;
}
/**
* Gets new
*
* @return int|null
*/
public function getNew()
{
return $this->container['new'];
}
/**
* Sets new
*
* @param int|null $new The number of new accounts created
*
* @return $this
*/
public function setNew($new)
{
$this->container['new'] = $new;
return $this;
}
/**
* Gets updated
*
* @return int|null
*/
public function getUpdated()
{
return $this->container['updated'];
}
/**
* Sets updated
*
* @param int|null $updated The number of accounts updated
*
* @return $this
*/
public function setUpdated($updated)
{
$this->container['updated'] = $updated;
return $this;
}
/**
* Gets deleted
*
* @return int|null
*/
public function getDeleted()
{
return $this->container['deleted'];
}
/**
* Sets deleted
*
* @param int|null $deleted The number of accounts deleted
*
* @return $this
*/
public function setDeleted($deleted)
{
$this->container['deleted'] = $deleted;
return $this;
}
/**
* Gets locked
*
* @return int|null
*/
public function getLocked()
{
return $this->container['locked'];
}
/**
* Sets locked
*
* @param int|null $locked The number of locked accounts
*
* @return $this
*/
public function setLocked($locked)
{
$this->container['locked'] = $locked;
return $this;
}
/**
* Gets system
*
* @return int|null
*/
public function getSystem()
{
return $this->container['system'];
}
/**
* Sets system
*
* @param int|null $system The number of system accounts
*
* @return $this
*/
public function setSystem($system)
{
$this->container['system'] = $system;
return $this;
}
/**
* Gets errored
*
* @return int|null
*/
public function getErrored()
{
return $this->container['errored'];
}
/**
* Sets errored
*
* @param int|null $errored The number of accounts that had an error
*
* @return $this
*/
public function setErrored($errored)
{
$this->container['errored'] = $errored;
return $this;
}
/**
* Gets present
*
* @return bool|null
*/
public function getPresent()
{
return $this->container['present'];
}
/**
* Sets present
*
* @param bool|null $present present
*
* @return $this
*/
public function setPresent($present)
{
$this->container['present'] = $present;
return $this;
}
/**
* Gets new_or_updated
*
* @return int|null
*/
public function getNewOrUpdated()
{
return $this->container['new_or_updated'];
}
/**
* Sets new_or_updated
*
* @param int|null $new_or_updated The number of new or updated accounts
*
* @return $this
*/
public function setNewOrUpdated($new_or_updated)
{
$this->container['new_or_updated'] = $new_or_updated;
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(
AccountingObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
}