'string', 'map' => 'string', 'type' => 'string', 'stream_depth' => 'string', 'description' => 'string' ); /** * Array of attributes where the key is the local name, and the value is the original name * @var string[] */ static $attributeMap = array( 'depot' => 'depot', 'map' => 'map', 'type' => 'type', 'stream_depth' => 'streamDepth', 'description' => 'description' ); /** * Array of attributes to setter functions (for deserialization of responses) * @var string[] */ static $setters = array( 'depot' => 'setDepot', 'map' => 'setMap', 'type' => 'setType', 'stream_depth' => 'setStreamDepth', 'description' => 'setDescription' ); /** * Array of attributes to getter functions (for serialization of requests) * @var string[] */ static $getters = array( 'depot' => 'getDepot', 'map' => 'getMap', 'type' => 'getType', 'stream_depth' => 'getStreamDepth', 'description' => 'getDescription' ); /** * $depot The depot name. * @var string */ protected $depot; /** * $map If the Type: is local, spec, or archive, set the map to point to the relative location of the depot subdirectory.\nThe map must contain the `...` wildcard; for example, a local depot new might have a Map: of `new/...`.\n\nIf the Type: is remote, set the map to point to a location in the remote depot's physical namespace, for example, `//depot/new/rel2/...`.\nThis directory will be the root of the local representation of the remote depot. * @var string */ protected $map; /** * $type `local`, `remote`, `spec`, `stream`, `unload`, `archive` or `tangent`.\n\nA local depot is writable, and is the default depot type.\nFiles reside in the server's root directory and are managed directly by the server.\n\nA stream depot is also writable, but contains streams, a type of branch that includes hierarchy and policy.\n\nA remote depot references files that reside on other servers, and cannot be written to.\n\nThe spec depot, if present, automatically archives edited forms.\n\nThe unload depot, if present, holds infrequently-used metadata (about old client workspaces and labels) that has been unloaded with the p4 unload command.\n\nAn archive depot is used in conjunction with the p4 archive and p4 restore commands to facilitate offline (or near-line) storage of infrequently-accessed revisions, typically large binaries.\n\nA tangent depot defines a read-only location that holds tangents created by the p4 fetch -t command.\nThe tangent depot named tangent is automatically created by p4 fetch -t if one does not already exist. * @var string */ protected $type; /** * $stream_depth For stream depots, the optional depth to be used for stream paths in the depot, where depth specifies the number of slashes following the depot name of a stream. ]\n\nThis field is used when streams are being created.\nThe default is 1, matching the traditional stream name.\nYou cannot update this value once streams or archive data exist in a depot. * @var string */ protected $stream_depth; /** * $description A short description of the depot’s purpose. Optional. * @var string */ protected $description; /** * Constructor * @param mixed[] $data Associated array of property value initalizing the model */ public function __construct(array $data = null) { if ($data != null) { if (isset($data["depot"])) { $this->depot = $data["depot"]; } if (isset($data["map"])) { $this->map = $data["map"]; } if (isset($data["type"])) { $this->type = $data["type"]; } if (isset($data["stream_depth"])) { $this->stream_depth = $data["stream_depth"]; } if (isset($data["description"])) { $this->description = $data["description"]; } } } /** * Gets depot * @return string */ public function getDepot() { return $this->depot; } /** * Sets depot * @param string $depot The depot name. * @return $this */ public function setDepot($depot) { $this->depot = $depot; return $this; } /** * Gets map * @return string */ public function getMap() { return $this->map; } /** * Sets map * @param string $map If the Type: is local, spec, or archive, set the map to point to the relative location of the depot subdirectory.\nThe map must contain the `...` wildcard; for example, a local depot new might have a Map: of `new/...`.\n\nIf the Type: is remote, set the map to point to a location in the remote depot's physical namespace, for example, `//depot/new/rel2/...`.\nThis directory will be the root of the local representation of the remote depot. * @return $this */ public function setMap($map) { $this->map = $map; return $this; } /** * Gets type * @return string */ public function getType() { return $this->type; } /** * Sets type * @param string $type `local`, `remote`, `spec`, `stream`, `unload`, `archive` or `tangent`.\n\nA local depot is writable, and is the default depot type.\nFiles reside in the server's root directory and are managed directly by the server.\n\nA stream depot is also writable, but contains streams, a type of branch that includes hierarchy and policy.\n\nA remote depot references files that reside on other servers, and cannot be written to.\n\nThe spec depot, if present, automatically archives edited forms.\n\nThe unload depot, if present, holds infrequently-used metadata (about old client workspaces and labels) that has been unloaded with the p4 unload command.\n\nAn archive depot is used in conjunction with the p4 archive and p4 restore commands to facilitate offline (or near-line) storage of infrequently-accessed revisions, typically large binaries.\n\nA tangent depot defines a read-only location that holds tangents created by the p4 fetch -t command.\nThe tangent depot named tangent is automatically created by p4 fetch -t if one does not already exist. * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Gets stream_depth * @return string */ public function getStreamDepth() { return $this->stream_depth; } /** * Sets stream_depth * @param string $stream_depth For stream depots, the optional depth to be used for stream paths in the depot, where depth specifies the number of slashes following the depot name of a stream. ]\n\nThis field is used when streams are being created.\nThe default is 1, matching the traditional stream name.\nYou cannot update this value once streams or archive data exist in a depot. * @return $this */ public function setStreamDepth($stream_depth) { $this->stream_depth = $stream_depth; return $this; } /** * Gets description * @return string */ public function getDescription() { return $this->description; } /** * Sets description * @param string $description A short description of the depot’s purpose. Optional. * @return $this */ public function setDescription($description) { $this->description = $description; 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(get_object_vars($this), JSON_PRETTY_PRINT); } else { return json_encode(get_object_vars($this)); } } }