/home/desid573/olivercann.tk/xero-php-oauth2-master/lib/Models/File
Edit: /home/desid573/olivercann.tk/xero-php-oauth2-master/lib/Models/File/Folder.php (8727B)
'string',
'file_count' => 'int',
'email' => 'string',
'is_inbox' => 'bool',
'id' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $openAPIFormats = [
'name' => null,
'file_count' => null,
'email' => null,
'is_inbox' => null,
'id' => 'uuid'
];
/**
* 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 = [
'name' => 'Name',
'file_count' => 'FileCount',
'email' => 'Email',
'is_inbox' => 'IsInbox',
'id' => 'Id'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'name' => 'setName',
'file_count' => 'setFileCount',
'email' => 'setEmail',
'is_inbox' => 'setIsInbox',
'id' => 'setId'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'name' => 'getName',
'file_count' => 'getFileCount',
'email' => 'getEmail',
'is_inbox' => 'getIsInbox',
'id' => 'getId'
];
/**
* 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['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['file_count'] = isset($data['file_count']) ? $data['file_count'] : null;
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
$this->container['is_inbox'] = isset($data['is_inbox']) ? $data['is_inbox'] : null;
$this->container['id'] = isset($data['id']) ? $data['id'] : 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 name
*
* @return string|null
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name
*
* @param string|null $name The name of the folder
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets file_count
*
* @return int|null
*/
public function getFileCount()
{
return $this->container['file_count'];
}
/**
* Sets file_count
*
* @param int|null $file_count The number of files in the folder
*
* @return $this
*/
public function setFileCount($file_count)
{
$this->container['file_count'] = $file_count;
return $this;
}
/**
* Gets email
*
* @return string|null
*/
public function getEmail()
{
return $this->container['email'];
}
/**
* Sets email
*
* @param string|null $email The email address used to email files to the inbox. Only the inbox will have this element.
*
* @return $this
*/
public function setEmail($email)
{
$this->container['email'] = $email;
return $this;
}
/**
* Gets is_inbox
*
* @return bool|null
*/
public function getIsInbox()
{
return $this->container['is_inbox'];
}
/**
* Sets is_inbox
*
* @param bool|null $is_inbox to indicate if the folder is the Inbox. The Inbox cannot be renamed or deleted.
*
* @return $this
*/
public function setIsInbox($is_inbox)
{
$this->container['is_inbox'] = $is_inbox;
return $this;
}
/**
* Gets id
*
* @return string|null
*/
public function getId()
{
return $this->container['id'];
}
/**
* Sets id
*
* @param string|null $id Xero unique identifier for a folder Files
*
* @return $this
*/
public function setId($id)
{
$this->container['id'] = $id;
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(
FileObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
}