PluginProbe
WooCommerce Square / 2.2.5
WooCommerce Square v2.2.5
5.5.0 5.4.3 5.4.2 5.4.1 5.4.0 trunk 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.30 1.0.31 1.0.32 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.38 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 All 132 releases
woocommerce-square / vendor / square / connect / lib / Model / BatchDeleteCatalogObjectsRequest.php
BatchDeleteCatalogObjectsRequest.php
147 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * NOTE: This class is auto generated by the swagger code generator program.
4 * https://github.com/swagger-api/swagger-codegen
5 * Do not edit the class manually.
6 */
7
8 namespace SquareConnect\Model;
9
10 use \ArrayAccess;
11 /**
12 * BatchDeleteCatalogObjectsRequest Class Doc Comment
13 *
14 * @category Class
15 * @package SquareConnect
16 * @author Square Inc.
17 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
18 * @link https://squareup.com/developers
19 */
20 class BatchDeleteCatalogObjectsRequest implements ArrayAccess
21 {
22 /**
23 * Array of property to type mappings. Used for (de)serialization
24 * @var string[]
25 */
26 static $swaggerTypes = array(
27 'object_ids' => 'string[]'
28 );
29
30 /**
31 * Array of attributes where the key is the local name, and the value is the original name
32 * @var string[]
33 */
34 static $attributeMap = array(
35 'object_ids' => 'object_ids'
36 );
37
38 /**
39 * Array of attributes to setter functions (for deserialization of responses)
40 * @var string[]
41 */
42 static $setters = array(
43 'object_ids' => 'setObjectIds'
44 );
45
46 /**
47 * Array of attributes to getter functions (for serialization of requests)
48 * @var string[]
49 */
50 static $getters = array(
51 'object_ids' => 'getObjectIds'
52 );
53
54 /**
55 * $object_ids The IDs of the [CatalogObject](#type-catalogobject)s to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a [CatalogItem](#type-catalogitem) will delete its [CatalogItemVariation](#type-catalogitemvariation)s).
56 * @var string[]
57 */
58 protected $object_ids;
59
60 /**
61 * Constructor
62 * @param mixed[] $data Associated array of property value initializing the model
63 */
64 public function __construct(array $data = null)
65 {
66 if ($data != null) {
67 if (isset($data["object_ids"])) {
68 $this->object_ids = $data["object_ids"];
69 } else {
70 $this->object_ids = null;
71 }
72 }
73 }
74 /**
75 * Gets object_ids
76 * @return string[]
77 */
78 public function getObjectIds()
79 {
80 return $this->object_ids;
81 }
82
83 /**
84 * Sets object_ids
85 * @param string[] $object_ids The IDs of the [CatalogObject](#type-catalogobject)s to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a [CatalogItem](#type-catalogitem) will delete its [CatalogItemVariation](#type-catalogitemvariation)s).
86 * @return $this
87 */
88 public function setObjectIds($object_ids)
89 {
90 $this->object_ids = $object_ids;
91 return $this;
92 }
93 /**
94 * Returns true if offset exists. False otherwise.
95 * @param integer $offset Offset
96 * @return boolean
97 */
98 public function offsetExists($offset)
99 {
100 return isset($this->$offset);
101 }
102
103 /**
104 * Gets offset.
105 * @param integer $offset Offset
106 * @return mixed
107 */
108 public function offsetGet($offset)
109 {
110 return $this->$offset;
111 }
112
113 /**
114 * Sets value based on offset.
115 * @param integer $offset Offset
116 * @param mixed $value Value to be set
117 * @return void
118 */
119 public function offsetSet($offset, $value)
120 {
121 $this->$offset = $value;
122 }
123
124 /**
125 * Unsets offset.
126 * @param integer $offset Offset
127 * @return void
128 */
129 public function offsetUnset($offset)
130 {
131 unset($this->$offset);
132 }
133
134 /**
135 * Gets the string presentation of the object
136 * @return string
137 */
138 public function __toString()
139 {
140 if (defined('JSON_PRETTY_PRINT')) {
141 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
142 } else {
143 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this));
144 }
145 }
146 }
147