├── .swagger-codegen └── VERSION ├── .php_cs ├── composer.json └── src ├── Model ├── RegistrationSuccess.php ├── RegistrationCompletion.php ├── ModelInterface.php ├── TagListSchema.php ├── TitleSchema.php ├── EnabledSchema.php ├── ScoreSchema.php ├── PaginatedList.php ├── ApplicationRequestSchema.php ├── CompletionAmountSchema.php ├── FileListSchema.php ├── IntegerResultSchema.php ├── MessageSchema.php ├── ResponseError.php ├── StringResultSchema.php ├── ReportageLinkSchema.php ├── CourseListNonPagedSchema.php ├── ZoomiCompanyId.php ├── SettingsPostSchema.php ├── LaunchLinkSchema.php ├── CredentialListSchema.php ├── DispatchLti13InfoSchema.php ├── CreateDispatchListSchema.php ├── DestinationListSchema.php ├── PublicInvitationList.php ├── ApplicationListSchema.php ├── InvitationSummaryList.php ├── PrivateInvitationList.php ├── LaunchHistoryListSchema.php └── UserInvitationList.php ├── HeaderSelector.php └── ApiException.php /.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 2.4.27 -------------------------------------------------------------------------------- /.php_cs: -------------------------------------------------------------------------------- 1 | setUsingCache(true) 5 | ->setRules([ 6 | '@PSR2' => true, 7 | 'ordered_imports' => true, 8 | 'phpdoc_order' => true, 9 | 'array_syntax' => [ 'syntax' => 'short' ], 10 | 'strict_comparison' => true, 11 | 'strict_param' => true, 12 | 'no_trailing_whitespace' => false, 13 | 'no_trailing_whitespace_in_comment' => false, 14 | 'braces' => false, 15 | 'single_blank_line_at_eof' => false, 16 | 'blank_line_after_namespace' => false, 17 | ]) 18 | ->setFinder( 19 | PhpCsFixer\Finder::create() 20 | ->exclude('test') 21 | ->exclude('tests') 22 | ->in(__DIR__) 23 | ); 24 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rustici-software/scormcloud-api-v2-client-php", 3 | "version": "4.0.0", 4 | "description": "", 5 | "keywords": [ 6 | "scorm", 7 | "cloud", 8 | "scormcloud", 9 | "rustici", 10 | "software", 11 | "rusticisoftware" 12 | ], 13 | "homepage": "https://github.com/RusticiSoftware/scormcloud-api-v2-client-php", 14 | "license": "Apache-2.0", 15 | "authors": [ 16 | { 17 | "name": "Rustici Software", 18 | "homepage": "https://rusticisoftware.com" 19 | } 20 | ], 21 | "require": { 22 | "php": ">=8.0", 23 | "ext-curl": "*", 24 | "ext-json": "*", 25 | "ext-mbstring": "*", 26 | "guzzlehttp/guzzle": "^7.3" 27 | }, 28 | "autoload": { 29 | "psr-4": { "RusticiSoftware\\Cloud\\V2\\" : "src/" } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Model/RegistrationSuccess.php: -------------------------------------------------------------------------------- 1 | selectAcceptHeader($accept); 53 | if ($accept !== null) { 54 | $headers['Accept'] = $accept; 55 | } 56 | 57 | $headers['Content-Type'] = $this->selectContentTypeHeader($contentTypes); 58 | return $headers; 59 | } 60 | 61 | /** 62 | * @param string[] $accept 63 | * @return array 64 | */ 65 | public function selectHeadersForMultipart($accept) 66 | { 67 | $headers = $this->selectHeaders($accept, []); 68 | 69 | unset($headers['Content-Type']); 70 | return $headers; 71 | } 72 | 73 | /** 74 | * Return the header 'Accept' based on an array of Accept provided 75 | * 76 | * @param string[] $accept Array of header 77 | * 78 | * @return string Accept (e.g. application/json) 79 | */ 80 | private function selectAcceptHeader($accept) 81 | { 82 | if (count($accept) === 0 || (count($accept) === 1 && $accept[0] === '')) { 83 | return null; 84 | } elseif (preg_grep("/application\/json/i", $accept)) { 85 | return 'application/json'; 86 | } else { 87 | return implode(',', $accept); 88 | } 89 | } 90 | 91 | /** 92 | * Return the content type based on an array of content-type provided 93 | * 94 | * @param string[] $contentType Array fo content-type 95 | * 96 | * @return string Content-Type (e.g. application/json) 97 | */ 98 | private function selectContentTypeHeader($contentType) 99 | { 100 | if (count($contentType) === 0 || (count($contentType) === 1 && $contentType[0] === '')) { 101 | return 'application/json'; 102 | } elseif (preg_grep("/application\/json/i", $contentType)) { 103 | return 'application/json'; 104 | } else { 105 | return implode(',', $contentType); 106 | } 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /src/ApiException.php: -------------------------------------------------------------------------------- 1 | responseHeaders = $responseHeaders; 76 | $this->responseBody = $responseBody; 77 | } 78 | 79 | /** 80 | * Gets the HTTP response header 81 | * 82 | * @return string[]|null HTTP response header 83 | */ 84 | public function getResponseHeaders() 85 | { 86 | return $this->responseHeaders; 87 | } 88 | 89 | /** 90 | * Gets the HTTP body of the server response either as Json or string 91 | * 92 | * @return mixed HTTP body of the server response either as \stdClass or string 93 | */ 94 | public function getResponseBody() 95 | { 96 | return $this->responseBody; 97 | } 98 | 99 | /** 100 | * Sets the deseralized response object (during deserialization) 101 | * 102 | * @param mixed $obj Deserialized response object 103 | * 104 | * @return void 105 | */ 106 | public function setResponseObject($obj) 107 | { 108 | $this->responseObject = $obj; 109 | } 110 | 111 | /** 112 | * Gets the deseralized response object (during deserialization) 113 | * 114 | * @return mixed the deserialized response object 115 | */ 116 | public function getResponseObject() 117 | { 118 | return $this->responseObject; 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /src/Model/TagListSchema.php: -------------------------------------------------------------------------------- 1 | 'string[]' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'tags' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'tags' => 'tags' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'tags' => 'setTags' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'tags' => 'getTags' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets tags 208 | * 209 | * @return string[] 210 | */ 211 | public function getTags() 212 | { 213 | return $this->container['tags']; 214 | } 215 | 216 | /** 217 | * Sets tags 218 | * 219 | * @param string[] $tags tags 220 | * 221 | * @return $this 222 | */ 223 | public function setTags($tags) 224 | { 225 | $this->container['tags'] = $tags; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/TitleSchema.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'title' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'title' => 'title' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'title' => 'setTitle' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'title' => 'getTitle' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['title'] = isset($data['title']) ? $data['title'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets title 208 | * 209 | * @return string 210 | */ 211 | public function getTitle() 212 | { 213 | return $this->container['title']; 214 | } 215 | 216 | /** 217 | * Sets title 218 | * 219 | * @param string $title title 220 | * 221 | * @return $this 222 | */ 223 | public function setTitle($title) 224 | { 225 | $this->container['title'] = $title; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/EnabledSchema.php: -------------------------------------------------------------------------------- 1 | 'bool' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'enabled' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'enabled' => 'enabled' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'enabled' => 'setEnabled' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'enabled' => 'getEnabled' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets enabled 208 | * 209 | * @return bool 210 | */ 211 | public function getEnabled() 212 | { 213 | return $this->container['enabled']; 214 | } 215 | 216 | /** 217 | * Sets enabled 218 | * 219 | * @param bool $enabled enabled 220 | * 221 | * @return $this 222 | */ 223 | public function setEnabled($enabled) 224 | { 225 | $this->container['enabled'] = $enabled; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/ScoreSchema.php: -------------------------------------------------------------------------------- 1 | 'double' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'scaled' => 'double' 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'scaled' => 'scaled' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'scaled' => 'setScaled' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'scaled' => 'getScaled' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['scaled'] = isset($data['scaled']) ? $data['scaled'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets scaled 208 | * 209 | * @return double 210 | */ 211 | public function getScaled() 212 | { 213 | return $this->container['scaled']; 214 | } 215 | 216 | /** 217 | * Sets scaled 218 | * 219 | * @param double $scaled Scaled score between 0 and 100 220 | * 221 | * @return $this 222 | */ 223 | public function setScaled($scaled) 224 | { 225 | $this->container['scaled'] = $scaled; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/PaginatedList.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'more' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'more' => 'more' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'more' => 'setMore' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'more' => 'getMore' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['more'] = isset($data['more']) ? $data['more'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets more 208 | * 209 | * @return string 210 | */ 211 | public function getMore() 212 | { 213 | return $this->container['more']; 214 | } 215 | 216 | /** 217 | * Sets more 218 | * 219 | * @param string $more Token for getting the next set of results, from the prior set of results. 220 | * 221 | * @return $this 222 | */ 223 | public function setMore($more) 224 | { 225 | $this->container['more'] = $more; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/ApplicationRequestSchema.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'name' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'name' => 'name' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'name' => 'setName' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'name' => 'getName' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['name'] = isset($data['name']) ? $data['name'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets name 208 | * 209 | * @return string 210 | */ 211 | public function getName() 212 | { 213 | return $this->container['name']; 214 | } 215 | 216 | /** 217 | * Sets name 218 | * 219 | * @param string $name The name of this application. 220 | * 221 | * @return $this 222 | */ 223 | public function setName($name) 224 | { 225 | $this->container['name'] = $name; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/CompletionAmountSchema.php: -------------------------------------------------------------------------------- 1 | 'double' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'scaled' => 'double' 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'scaled' => 'scaled' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'scaled' => 'setScaled' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'scaled' => 'getScaled' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['scaled'] = isset($data['scaled']) ? $data['scaled'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets scaled 208 | * 209 | * @return double 210 | */ 211 | public function getScaled() 212 | { 213 | return $this->container['scaled']; 214 | } 215 | 216 | /** 217 | * Sets scaled 218 | * 219 | * @param double $scaled Scaled completion amount between 0 and 100 220 | * 221 | * @return $this 222 | */ 223 | public function setScaled($scaled) 224 | { 225 | $this->container['scaled'] = $scaled; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/FileListSchema.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\FileListItemSchema[]' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'files' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'files' => 'files' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'files' => 'setFiles' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'files' => 'getFiles' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['files'] = isset($data['files']) ? $data['files'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets files 208 | * 209 | * @return \RusticiSoftware\Cloud\V2\Model\FileListItemSchema[] 210 | */ 211 | public function getFiles() 212 | { 213 | return $this->container['files']; 214 | } 215 | 216 | /** 217 | * Sets files 218 | * 219 | * @param \RusticiSoftware\Cloud\V2\Model\FileListItemSchema[] $files files 220 | * 221 | * @return $this 222 | */ 223 | public function setFiles($files) 224 | { 225 | $this->container['files'] = $files; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/IntegerResultSchema.php: -------------------------------------------------------------------------------- 1 | 'int' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'result' => 'int32' 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'result' => 'result' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'result' => 'setResult' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'result' => 'getResult' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['result'] = isset($data['result']) ? $data['result'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | if ($this->container['result'] === null) { 192 | $invalidProperties[] = "'result' can't be null"; 193 | } 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets result 211 | * 212 | * @return int 213 | */ 214 | public function getResult() 215 | { 216 | return $this->container['result']; 217 | } 218 | 219 | /** 220 | * Sets result 221 | * 222 | * @param int $result result 223 | * 224 | * @return $this 225 | */ 226 | public function setResult($result) 227 | { 228 | $this->container['result'] = $result; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return bool 238 | */ 239 | public function offsetExists($offset): bool 240 | { 241 | return isset($this->container[$offset]); 242 | } 243 | 244 | /** 245 | * Gets offset. 246 | * 247 | * @param integer $offset Offset 248 | * 249 | * @return mixed 250 | */ 251 | public function offsetGet($offset): mixed 252 | { 253 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 254 | } 255 | 256 | /** 257 | * Sets value based on offset. 258 | * 259 | * @param integer $offset Offset 260 | * @param mixed $value Value to be set 261 | * 262 | * @return void 263 | */ 264 | public function offsetSet($offset, $value): void 265 | { 266 | if (is_null($offset)) { 267 | $this->container[] = $value; 268 | } else { 269 | $this->container[$offset] = $value; 270 | } 271 | } 272 | 273 | /** 274 | * Unsets offset. 275 | * 276 | * @param integer $offset Offset 277 | * 278 | * @return void 279 | */ 280 | public function offsetUnset($offset): void 281 | { 282 | unset($this->container[$offset]); 283 | } 284 | 285 | /** 286 | * Gets the string presentation of the object 287 | * 288 | * @return string 289 | */ 290 | public function __toString() 291 | { 292 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 293 | return json_encode( 294 | ObjectSerializer::sanitizeForSerialization($this), 295 | JSON_PRETTY_PRINT 296 | ); 297 | } 298 | 299 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 300 | } 301 | } 302 | 303 | 304 | -------------------------------------------------------------------------------- /src/Model/MessageSchema.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'message' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'message' => 'message' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'message' => 'setMessage' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'message' => 'getMessage' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['message'] = isset($data['message']) ? $data['message'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | if ($this->container['message'] === null) { 192 | $invalidProperties[] = "'message' can't be null"; 193 | } 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets message 211 | * 212 | * @return string 213 | */ 214 | public function getMessage() 215 | { 216 | return $this->container['message']; 217 | } 218 | 219 | /** 220 | * Sets message 221 | * 222 | * @param string $message message 223 | * 224 | * @return $this 225 | */ 226 | public function setMessage($message) 227 | { 228 | $this->container['message'] = $message; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return bool 238 | */ 239 | public function offsetExists($offset): bool 240 | { 241 | return isset($this->container[$offset]); 242 | } 243 | 244 | /** 245 | * Gets offset. 246 | * 247 | * @param integer $offset Offset 248 | * 249 | * @return mixed 250 | */ 251 | public function offsetGet($offset): mixed 252 | { 253 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 254 | } 255 | 256 | /** 257 | * Sets value based on offset. 258 | * 259 | * @param integer $offset Offset 260 | * @param mixed $value Value to be set 261 | * 262 | * @return void 263 | */ 264 | public function offsetSet($offset, $value): void 265 | { 266 | if (is_null($offset)) { 267 | $this->container[] = $value; 268 | } else { 269 | $this->container[$offset] = $value; 270 | } 271 | } 272 | 273 | /** 274 | * Unsets offset. 275 | * 276 | * @param integer $offset Offset 277 | * 278 | * @return void 279 | */ 280 | public function offsetUnset($offset): void 281 | { 282 | unset($this->container[$offset]); 283 | } 284 | 285 | /** 286 | * Gets the string presentation of the object 287 | * 288 | * @return string 289 | */ 290 | public function __toString() 291 | { 292 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 293 | return json_encode( 294 | ObjectSerializer::sanitizeForSerialization($this), 295 | JSON_PRETTY_PRINT 296 | ); 297 | } 298 | 299 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 300 | } 301 | } 302 | 303 | 304 | -------------------------------------------------------------------------------- /src/Model/ResponseError.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'message' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'message' => 'message' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'message' => 'setMessage' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'message' => 'getMessage' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['message'] = isset($data['message']) ? $data['message'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | if ($this->container['message'] === null) { 192 | $invalidProperties[] = "'message' can't be null"; 193 | } 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets message 211 | * 212 | * @return string 213 | */ 214 | public function getMessage() 215 | { 216 | return $this->container['message']; 217 | } 218 | 219 | /** 220 | * Sets message 221 | * 222 | * @param string $message message 223 | * 224 | * @return $this 225 | */ 226 | public function setMessage($message) 227 | { 228 | $this->container['message'] = $message; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return bool 238 | */ 239 | public function offsetExists($offset): bool 240 | { 241 | return isset($this->container[$offset]); 242 | } 243 | 244 | /** 245 | * Gets offset. 246 | * 247 | * @param integer $offset Offset 248 | * 249 | * @return mixed 250 | */ 251 | public function offsetGet($offset): mixed 252 | { 253 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 254 | } 255 | 256 | /** 257 | * Sets value based on offset. 258 | * 259 | * @param integer $offset Offset 260 | * @param mixed $value Value to be set 261 | * 262 | * @return void 263 | */ 264 | public function offsetSet($offset, $value): void 265 | { 266 | if (is_null($offset)) { 267 | $this->container[] = $value; 268 | } else { 269 | $this->container[$offset] = $value; 270 | } 271 | } 272 | 273 | /** 274 | * Unsets offset. 275 | * 276 | * @param integer $offset Offset 277 | * 278 | * @return void 279 | */ 280 | public function offsetUnset($offset): void 281 | { 282 | unset($this->container[$offset]); 283 | } 284 | 285 | /** 286 | * Gets the string presentation of the object 287 | * 288 | * @return string 289 | */ 290 | public function __toString() 291 | { 292 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 293 | return json_encode( 294 | ObjectSerializer::sanitizeForSerialization($this), 295 | JSON_PRETTY_PRINT 296 | ); 297 | } 298 | 299 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 300 | } 301 | } 302 | 303 | 304 | -------------------------------------------------------------------------------- /src/Model/StringResultSchema.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'result' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'result' => 'result' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'result' => 'setResult' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'result' => 'getResult' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['result'] = isset($data['result']) ? $data['result'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | if ($this->container['result'] === null) { 192 | $invalidProperties[] = "'result' can't be null"; 193 | } 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets result 211 | * 212 | * @return string 213 | */ 214 | public function getResult() 215 | { 216 | return $this->container['result']; 217 | } 218 | 219 | /** 220 | * Sets result 221 | * 222 | * @param string $result result 223 | * 224 | * @return $this 225 | */ 226 | public function setResult($result) 227 | { 228 | $this->container['result'] = $result; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return bool 238 | */ 239 | public function offsetExists($offset): bool 240 | { 241 | return isset($this->container[$offset]); 242 | } 243 | 244 | /** 245 | * Gets offset. 246 | * 247 | * @param integer $offset Offset 248 | * 249 | * @return mixed 250 | */ 251 | public function offsetGet($offset): mixed 252 | { 253 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 254 | } 255 | 256 | /** 257 | * Sets value based on offset. 258 | * 259 | * @param integer $offset Offset 260 | * @param mixed $value Value to be set 261 | * 262 | * @return void 263 | */ 264 | public function offsetSet($offset, $value): void 265 | { 266 | if (is_null($offset)) { 267 | $this->container[] = $value; 268 | } else { 269 | $this->container[$offset] = $value; 270 | } 271 | } 272 | 273 | /** 274 | * Unsets offset. 275 | * 276 | * @param integer $offset Offset 277 | * 278 | * @return void 279 | */ 280 | public function offsetUnset($offset): void 281 | { 282 | unset($this->container[$offset]); 283 | } 284 | 285 | /** 286 | * Gets the string presentation of the object 287 | * 288 | * @return string 289 | */ 290 | public function __toString() 291 | { 292 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 293 | return json_encode( 294 | ObjectSerializer::sanitizeForSerialization($this), 295 | JSON_PRETTY_PRINT 296 | ); 297 | } 298 | 299 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 300 | } 301 | } 302 | 303 | 304 | -------------------------------------------------------------------------------- /src/Model/ReportageLinkSchema.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'reportage_link' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'reportage_link' => 'reportageLink' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'reportage_link' => 'setReportageLink' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'reportage_link' => 'getReportageLink' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['reportage_link'] = isset($data['reportage_link']) ? $data['reportage_link'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets reportage_link 208 | * 209 | * @return string 210 | */ 211 | public function getReportageLink() 212 | { 213 | return $this->container['reportage_link']; 214 | } 215 | 216 | /** 217 | * Sets reportage_link 218 | * 219 | * @param string $reportage_link reportage_link 220 | * 221 | * @return $this 222 | */ 223 | public function setReportageLink($reportage_link) 224 | { 225 | $this->container['reportage_link'] = $reportage_link; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/CourseListNonPagedSchema.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\CourseSchema[]' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'courses' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'courses' => 'courses' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'courses' => 'setCourses' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'courses' => 'getCourses' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['courses'] = isset($data['courses']) ? $data['courses'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets courses 208 | * 209 | * @return \RusticiSoftware\Cloud\V2\Model\CourseSchema[] 210 | */ 211 | public function getCourses() 212 | { 213 | return $this->container['courses']; 214 | } 215 | 216 | /** 217 | * Sets courses 218 | * 219 | * @param \RusticiSoftware\Cloud\V2\Model\CourseSchema[] $courses courses 220 | * 221 | * @return $this 222 | */ 223 | public function setCourses($courses) 224 | { 225 | $this->container['courses'] = $courses; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/ZoomiCompanyId.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'zoomi_company_id' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'zoomi_company_id' => 'zoomi_company_id' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'zoomi_company_id' => 'setZoomiCompanyId' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'zoomi_company_id' => 'getZoomiCompanyId' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['zoomi_company_id'] = isset($data['zoomi_company_id']) ? $data['zoomi_company_id'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets zoomi_company_id 208 | * 209 | * @return string 210 | */ 211 | public function getZoomiCompanyId() 212 | { 213 | return $this->container['zoomi_company_id']; 214 | } 215 | 216 | /** 217 | * Sets zoomi_company_id 218 | * 219 | * @param string $zoomi_company_id zoomi_company_id 220 | * 221 | * @return $this 222 | */ 223 | public function setZoomiCompanyId($zoomi_company_id) 224 | { 225 | $this->container['zoomi_company_id'] = $zoomi_company_id; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/SettingsPostSchema.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\SettingsIndividualSchema[]' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'settings' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'settings' => 'settings' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'settings' => 'setSettings' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'settings' => 'getSettings' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['settings'] = isset($data['settings']) ? $data['settings'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets settings 208 | * 209 | * @return \RusticiSoftware\Cloud\V2\Model\SettingsIndividualSchema[] 210 | */ 211 | public function getSettings() 212 | { 213 | return $this->container['settings']; 214 | } 215 | 216 | /** 217 | * Sets settings 218 | * 219 | * @param \RusticiSoftware\Cloud\V2\Model\SettingsIndividualSchema[] $settings settings 220 | * 221 | * @return $this 222 | */ 223 | public function setSettings($settings) 224 | { 225 | $this->container['settings'] = $settings; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/LaunchLinkSchema.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'launch_link' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'launch_link' => 'launchLink' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'launch_link' => 'setLaunchLink' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'launch_link' => 'getLaunchLink' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['launch_link'] = isset($data['launch_link']) ? $data['launch_link'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | if ($this->container['launch_link'] === null) { 192 | $invalidProperties[] = "'launch_link' can't be null"; 193 | } 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets launch_link 211 | * 212 | * @return string 213 | */ 214 | public function getLaunchLink() 215 | { 216 | return $this->container['launch_link']; 217 | } 218 | 219 | /** 220 | * Sets launch_link 221 | * 222 | * @param string $launch_link launch_link 223 | * 224 | * @return $this 225 | */ 226 | public function setLaunchLink($launch_link) 227 | { 228 | $this->container['launch_link'] = $launch_link; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return bool 238 | */ 239 | public function offsetExists($offset): bool 240 | { 241 | return isset($this->container[$offset]); 242 | } 243 | 244 | /** 245 | * Gets offset. 246 | * 247 | * @param integer $offset Offset 248 | * 249 | * @return mixed 250 | */ 251 | public function offsetGet($offset): mixed 252 | { 253 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 254 | } 255 | 256 | /** 257 | * Sets value based on offset. 258 | * 259 | * @param integer $offset Offset 260 | * @param mixed $value Value to be set 261 | * 262 | * @return void 263 | */ 264 | public function offsetSet($offset, $value): void 265 | { 266 | if (is_null($offset)) { 267 | $this->container[] = $value; 268 | } else { 269 | $this->container[$offset] = $value; 270 | } 271 | } 272 | 273 | /** 274 | * Unsets offset. 275 | * 276 | * @param integer $offset Offset 277 | * 278 | * @return void 279 | */ 280 | public function offsetUnset($offset): void 281 | { 282 | unset($this->container[$offset]); 283 | } 284 | 285 | /** 286 | * Gets the string presentation of the object 287 | * 288 | * @return string 289 | */ 290 | public function __toString() 291 | { 292 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 293 | return json_encode( 294 | ObjectSerializer::sanitizeForSerialization($this), 295 | JSON_PRETTY_PRINT 296 | ); 297 | } 298 | 299 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 300 | } 301 | } 302 | 303 | 304 | -------------------------------------------------------------------------------- /src/Model/CredentialListSchema.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\CredentialSchema[]' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'credentials' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'credentials' => 'credentials' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'credentials' => 'setCredentials' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'credentials' => 'getCredentials' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['credentials'] = isset($data['credentials']) ? $data['credentials'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets credentials 208 | * 209 | * @return \RusticiSoftware\Cloud\V2\Model\CredentialSchema[] 210 | */ 211 | public function getCredentials() 212 | { 213 | return $this->container['credentials']; 214 | } 215 | 216 | /** 217 | * Sets credentials 218 | * 219 | * @param \RusticiSoftware\Cloud\V2\Model\CredentialSchema[] $credentials credentials 220 | * 221 | * @return $this 222 | */ 223 | public function setCredentials($credentials) 224 | { 225 | $this->container['credentials'] = $credentials; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/DispatchLti13InfoSchema.php: -------------------------------------------------------------------------------- 1 | 'string' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'target_link_uri' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'target_link_uri' => 'targetLinkUri' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'target_link_uri' => 'setTargetLinkUri' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'target_link_uri' => 'getTargetLinkUri' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['target_link_uri'] = isset($data['target_link_uri']) ? $data['target_link_uri'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets target_link_uri 208 | * 209 | * @return string 210 | */ 211 | public function getTargetLinkUri() 212 | { 213 | return $this->container['target_link_uri']; 214 | } 215 | 216 | /** 217 | * Sets target_link_uri 218 | * 219 | * @param string $target_link_uri Endpoint executed at the end of the OIDC authentication flow. 220 | * 221 | * @return $this 222 | */ 223 | public function setTargetLinkUri($target_link_uri) 224 | { 225 | $this->container['target_link_uri'] = $target_link_uri; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/CreateDispatchListSchema.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\CreateDispatchIdSchema[]' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'dispatches' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'dispatches' => 'dispatches' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'dispatches' => 'setDispatches' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'dispatches' => 'getDispatches' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['dispatches'] = isset($data['dispatches']) ? $data['dispatches'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets dispatches 208 | * 209 | * @return \RusticiSoftware\Cloud\V2\Model\CreateDispatchIdSchema[] 210 | */ 211 | public function getDispatches() 212 | { 213 | return $this->container['dispatches']; 214 | } 215 | 216 | /** 217 | * Sets dispatches 218 | * 219 | * @param \RusticiSoftware\Cloud\V2\Model\CreateDispatchIdSchema[] $dispatches dispatches 220 | * 221 | * @return $this 222 | */ 223 | public function setDispatches($dispatches) 224 | { 225 | $this->container['dispatches'] = $dispatches; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/DestinationListSchema.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\DestinationIdSchema[]' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'destinations' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'destinations' => 'destinations' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'destinations' => 'setDestinations' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'destinations' => 'getDestinations' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['destinations'] = isset($data['destinations']) ? $data['destinations'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets destinations 208 | * 209 | * @return \RusticiSoftware\Cloud\V2\Model\DestinationIdSchema[] 210 | */ 211 | public function getDestinations() 212 | { 213 | return $this->container['destinations']; 214 | } 215 | 216 | /** 217 | * Sets destinations 218 | * 219 | * @param \RusticiSoftware\Cloud\V2\Model\DestinationIdSchema[] $destinations 220 | * 221 | * @return $this 222 | */ 223 | public function setDestinations($destinations) 224 | { 225 | $this->container['destinations'] = $destinations; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/PublicInvitationList.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\PublicInvitationSchema[]' 58 | ]; 59 | 60 | /** 61 | * Array of property to format mappings. Used for (de)serialization 62 | * 63 | * @var string[] 64 | */ 65 | protected static $swaggerFormats = [ 66 | 'invitations' => null 67 | ]; 68 | 69 | /** 70 | * Array of property to type mappings. Used for (de)serialization 71 | * 72 | * @return array 73 | */ 74 | public static function swaggerTypes() 75 | { 76 | return self::$swaggerTypes + parent::swaggerTypes(); 77 | } 78 | 79 | /** 80 | * Array of property to format mappings. Used for (de)serialization 81 | * 82 | * @return array 83 | */ 84 | public static function swaggerFormats() 85 | { 86 | return self::$swaggerFormats + parent::swaggerFormats(); 87 | } 88 | 89 | /** 90 | * Array of attributes where the key is the local name, 91 | * and the value is the original name 92 | * 93 | * @var string[] 94 | */ 95 | protected static $attributeMap = [ 96 | 'invitations' => 'invitations' 97 | ]; 98 | 99 | /** 100 | * Array of attributes to setter functions (for deserialization of responses) 101 | * 102 | * @var string[] 103 | */ 104 | protected static $setters = [ 105 | 'invitations' => 'setInvitations' 106 | ]; 107 | 108 | /** 109 | * Array of attributes to getter functions (for serialization of requests) 110 | * 111 | * @var string[] 112 | */ 113 | protected static $getters = [ 114 | 'invitations' => 'getInvitations' 115 | ]; 116 | 117 | /** 118 | * Array of attributes where the key is the local name, 119 | * and the value is the original name 120 | * 121 | * @return array 122 | */ 123 | public static function attributeMap() 124 | { 125 | return parent::attributeMap() + self::$attributeMap; 126 | } 127 | 128 | /** 129 | * Array of attributes to setter functions (for deserialization of responses) 130 | * 131 | * @return array 132 | */ 133 | public static function setters() 134 | { 135 | return parent::setters() + self::$setters; 136 | } 137 | 138 | /** 139 | * Array of attributes to getter functions (for serialization of requests) 140 | * 141 | * @return array 142 | */ 143 | public static function getters() 144 | { 145 | return parent::getters() + self::$getters; 146 | } 147 | 148 | /** 149 | * The original name of the model. 150 | * 151 | * @return string 152 | */ 153 | public function getModelName() 154 | { 155 | return self::$swaggerModelName; 156 | } 157 | 158 | 159 | 160 | 161 | 162 | 163 | /** 164 | * Constructor 165 | * 166 | * @param mixed[] $data Associated array of property values 167 | * initializing the model 168 | */ 169 | public function __construct(array $data = null) 170 | { 171 | parent::__construct($data); 172 | 173 | $this->container['invitations'] = isset($data['invitations']) ? $data['invitations'] : null; 174 | } 175 | 176 | /** 177 | * Show all the invalid properties with reasons. 178 | * 179 | * @return array invalid properties with reasons 180 | */ 181 | public function listInvalidProperties() 182 | { 183 | $invalidProperties = parent::listInvalidProperties(); 184 | 185 | return $invalidProperties; 186 | } 187 | 188 | /** 189 | * Validate all the properties in the model 190 | * return true if all passed 191 | * 192 | * @return bool True if all properties are valid 193 | */ 194 | public function valid() 195 | { 196 | return count($this->listInvalidProperties()) === 0; 197 | } 198 | 199 | 200 | /** 201 | * Gets invitations 202 | * 203 | * @return \RusticiSoftware\Cloud\V2\Model\PublicInvitationSchema[] 204 | */ 205 | public function getInvitations() 206 | { 207 | return $this->container['invitations']; 208 | } 209 | 210 | /** 211 | * Sets invitations 212 | * 213 | * @param \RusticiSoftware\Cloud\V2\Model\PublicInvitationSchema[] $invitations A list of public invitation objects. 214 | * 215 | * @return $this 216 | */ 217 | public function setInvitations($invitations) 218 | { 219 | $this->container['invitations'] = $invitations; 220 | 221 | return $this; 222 | } 223 | /** 224 | * Returns true if offset exists. False otherwise. 225 | * 226 | * @param integer $offset Offset 227 | * 228 | * @return bool 229 | */ 230 | public function offsetExists($offset): bool 231 | { 232 | return isset($this->container[$offset]); 233 | } 234 | 235 | /** 236 | * Gets offset. 237 | * 238 | * @param integer $offset Offset 239 | * 240 | * @return mixed 241 | */ 242 | public function offsetGet($offset): mixed 243 | { 244 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 245 | } 246 | 247 | /** 248 | * Sets value based on offset. 249 | * 250 | * @param integer $offset Offset 251 | * @param mixed $value Value to be set 252 | * 253 | * @return void 254 | */ 255 | public function offsetSet($offset, $value): void 256 | { 257 | if (is_null($offset)) { 258 | $this->container[] = $value; 259 | } else { 260 | $this->container[$offset] = $value; 261 | } 262 | } 263 | 264 | /** 265 | * Unsets offset. 266 | * 267 | * @param integer $offset Offset 268 | * 269 | * @return void 270 | */ 271 | public function offsetUnset($offset): void 272 | { 273 | unset($this->container[$offset]); 274 | } 275 | 276 | /** 277 | * Gets the string presentation of the object 278 | * 279 | * @return string 280 | */ 281 | public function __toString() 282 | { 283 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 284 | return json_encode( 285 | ObjectSerializer::sanitizeForSerialization($this), 286 | JSON_PRETTY_PRINT 287 | ); 288 | } 289 | 290 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 291 | } 292 | } 293 | 294 | 295 | -------------------------------------------------------------------------------- /src/Model/ApplicationListSchema.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\ApplicationSchema[]' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'applications' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'applications' => 'applications' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'applications' => 'setApplications' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'applications' => 'getApplications' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['applications'] = isset($data['applications']) ? $data['applications'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets applications 208 | * 209 | * @return \RusticiSoftware\Cloud\V2\Model\ApplicationSchema[] 210 | */ 211 | public function getApplications() 212 | { 213 | return $this->container['applications']; 214 | } 215 | 216 | /** 217 | * Sets applications 218 | * 219 | * @param \RusticiSoftware\Cloud\V2\Model\ApplicationSchema[] $applications applications 220 | * 221 | * @return $this 222 | */ 223 | public function setApplications($applications) 224 | { 225 | $this->container['applications'] = $applications; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/InvitationSummaryList.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\InvitationSummarySchema[]' 58 | ]; 59 | 60 | /** 61 | * Array of property to format mappings. Used for (de)serialization 62 | * 63 | * @var string[] 64 | */ 65 | protected static $swaggerFormats = [ 66 | 'invitations' => null 67 | ]; 68 | 69 | /** 70 | * Array of property to type mappings. Used for (de)serialization 71 | * 72 | * @return array 73 | */ 74 | public static function swaggerTypes() 75 | { 76 | return self::$swaggerTypes + parent::swaggerTypes(); 77 | } 78 | 79 | /** 80 | * Array of property to format mappings. Used for (de)serialization 81 | * 82 | * @return array 83 | */ 84 | public static function swaggerFormats() 85 | { 86 | return self::$swaggerFormats + parent::swaggerFormats(); 87 | } 88 | 89 | /** 90 | * Array of attributes where the key is the local name, 91 | * and the value is the original name 92 | * 93 | * @var string[] 94 | */ 95 | protected static $attributeMap = [ 96 | 'invitations' => 'invitations' 97 | ]; 98 | 99 | /** 100 | * Array of attributes to setter functions (for deserialization of responses) 101 | * 102 | * @var string[] 103 | */ 104 | protected static $setters = [ 105 | 'invitations' => 'setInvitations' 106 | ]; 107 | 108 | /** 109 | * Array of attributes to getter functions (for serialization of requests) 110 | * 111 | * @var string[] 112 | */ 113 | protected static $getters = [ 114 | 'invitations' => 'getInvitations' 115 | ]; 116 | 117 | /** 118 | * Array of attributes where the key is the local name, 119 | * and the value is the original name 120 | * 121 | * @return array 122 | */ 123 | public static function attributeMap() 124 | { 125 | return parent::attributeMap() + self::$attributeMap; 126 | } 127 | 128 | /** 129 | * Array of attributes to setter functions (for deserialization of responses) 130 | * 131 | * @return array 132 | */ 133 | public static function setters() 134 | { 135 | return parent::setters() + self::$setters; 136 | } 137 | 138 | /** 139 | * Array of attributes to getter functions (for serialization of requests) 140 | * 141 | * @return array 142 | */ 143 | public static function getters() 144 | { 145 | return parent::getters() + self::$getters; 146 | } 147 | 148 | /** 149 | * The original name of the model. 150 | * 151 | * @return string 152 | */ 153 | public function getModelName() 154 | { 155 | return self::$swaggerModelName; 156 | } 157 | 158 | 159 | 160 | 161 | 162 | 163 | /** 164 | * Constructor 165 | * 166 | * @param mixed[] $data Associated array of property values 167 | * initializing the model 168 | */ 169 | public function __construct(array $data = null) 170 | { 171 | parent::__construct($data); 172 | 173 | $this->container['invitations'] = isset($data['invitations']) ? $data['invitations'] : null; 174 | } 175 | 176 | /** 177 | * Show all the invalid properties with reasons. 178 | * 179 | * @return array invalid properties with reasons 180 | */ 181 | public function listInvalidProperties() 182 | { 183 | $invalidProperties = parent::listInvalidProperties(); 184 | 185 | return $invalidProperties; 186 | } 187 | 188 | /** 189 | * Validate all the properties in the model 190 | * return true if all passed 191 | * 192 | * @return bool True if all properties are valid 193 | */ 194 | public function valid() 195 | { 196 | return count($this->listInvalidProperties()) === 0; 197 | } 198 | 199 | 200 | /** 201 | * Gets invitations 202 | * 203 | * @return \RusticiSoftware\Cloud\V2\Model\InvitationSummarySchema[] 204 | */ 205 | public function getInvitations() 206 | { 207 | return $this->container['invitations']; 208 | } 209 | 210 | /** 211 | * Sets invitations 212 | * 213 | * @param \RusticiSoftware\Cloud\V2\Model\InvitationSummarySchema[] $invitations A list of invitation overview objects. 214 | * 215 | * @return $this 216 | */ 217 | public function setInvitations($invitations) 218 | { 219 | $this->container['invitations'] = $invitations; 220 | 221 | return $this; 222 | } 223 | /** 224 | * Returns true if offset exists. False otherwise. 225 | * 226 | * @param integer $offset Offset 227 | * 228 | * @return bool 229 | */ 230 | public function offsetExists($offset): bool 231 | { 232 | return isset($this->container[$offset]); 233 | } 234 | 235 | /** 236 | * Gets offset. 237 | * 238 | * @param integer $offset Offset 239 | * 240 | * @return mixed 241 | */ 242 | public function offsetGet($offset): mixed 243 | { 244 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 245 | } 246 | 247 | /** 248 | * Sets value based on offset. 249 | * 250 | * @param integer $offset Offset 251 | * @param mixed $value Value to be set 252 | * 253 | * @return void 254 | */ 255 | public function offsetSet($offset, $value): void 256 | { 257 | if (is_null($offset)) { 258 | $this->container[] = $value; 259 | } else { 260 | $this->container[$offset] = $value; 261 | } 262 | } 263 | 264 | /** 265 | * Unsets offset. 266 | * 267 | * @param integer $offset Offset 268 | * 269 | * @return void 270 | */ 271 | public function offsetUnset($offset): void 272 | { 273 | unset($this->container[$offset]); 274 | } 275 | 276 | /** 277 | * Gets the string presentation of the object 278 | * 279 | * @return string 280 | */ 281 | public function __toString() 282 | { 283 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 284 | return json_encode( 285 | ObjectSerializer::sanitizeForSerialization($this), 286 | JSON_PRETTY_PRINT 287 | ); 288 | } 289 | 290 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 291 | } 292 | } 293 | 294 | 295 | -------------------------------------------------------------------------------- /src/Model/PrivateInvitationList.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\PrivateInvitationSchema[]' 58 | ]; 59 | 60 | /** 61 | * Array of property to format mappings. Used for (de)serialization 62 | * 63 | * @var string[] 64 | */ 65 | protected static $swaggerFormats = [ 66 | 'invitations' => null 67 | ]; 68 | 69 | /** 70 | * Array of property to type mappings. Used for (de)serialization 71 | * 72 | * @return array 73 | */ 74 | public static function swaggerTypes() 75 | { 76 | return self::$swaggerTypes + parent::swaggerTypes(); 77 | } 78 | 79 | /** 80 | * Array of property to format mappings. Used for (de)serialization 81 | * 82 | * @return array 83 | */ 84 | public static function swaggerFormats() 85 | { 86 | return self::$swaggerFormats + parent::swaggerFormats(); 87 | } 88 | 89 | /** 90 | * Array of attributes where the key is the local name, 91 | * and the value is the original name 92 | * 93 | * @var string[] 94 | */ 95 | protected static $attributeMap = [ 96 | 'invitations' => 'invitations' 97 | ]; 98 | 99 | /** 100 | * Array of attributes to setter functions (for deserialization of responses) 101 | * 102 | * @var string[] 103 | */ 104 | protected static $setters = [ 105 | 'invitations' => 'setInvitations' 106 | ]; 107 | 108 | /** 109 | * Array of attributes to getter functions (for serialization of requests) 110 | * 111 | * @var string[] 112 | */ 113 | protected static $getters = [ 114 | 'invitations' => 'getInvitations' 115 | ]; 116 | 117 | /** 118 | * Array of attributes where the key is the local name, 119 | * and the value is the original name 120 | * 121 | * @return array 122 | */ 123 | public static function attributeMap() 124 | { 125 | return parent::attributeMap() + self::$attributeMap; 126 | } 127 | 128 | /** 129 | * Array of attributes to setter functions (for deserialization of responses) 130 | * 131 | * @return array 132 | */ 133 | public static function setters() 134 | { 135 | return parent::setters() + self::$setters; 136 | } 137 | 138 | /** 139 | * Array of attributes to getter functions (for serialization of requests) 140 | * 141 | * @return array 142 | */ 143 | public static function getters() 144 | { 145 | return parent::getters() + self::$getters; 146 | } 147 | 148 | /** 149 | * The original name of the model. 150 | * 151 | * @return string 152 | */ 153 | public function getModelName() 154 | { 155 | return self::$swaggerModelName; 156 | } 157 | 158 | 159 | 160 | 161 | 162 | 163 | /** 164 | * Constructor 165 | * 166 | * @param mixed[] $data Associated array of property values 167 | * initializing the model 168 | */ 169 | public function __construct(array $data = null) 170 | { 171 | parent::__construct($data); 172 | 173 | $this->container['invitations'] = isset($data['invitations']) ? $data['invitations'] : null; 174 | } 175 | 176 | /** 177 | * Show all the invalid properties with reasons. 178 | * 179 | * @return array invalid properties with reasons 180 | */ 181 | public function listInvalidProperties() 182 | { 183 | $invalidProperties = parent::listInvalidProperties(); 184 | 185 | return $invalidProperties; 186 | } 187 | 188 | /** 189 | * Validate all the properties in the model 190 | * return true if all passed 191 | * 192 | * @return bool True if all properties are valid 193 | */ 194 | public function valid() 195 | { 196 | return count($this->listInvalidProperties()) === 0; 197 | } 198 | 199 | 200 | /** 201 | * Gets invitations 202 | * 203 | * @return \RusticiSoftware\Cloud\V2\Model\PrivateInvitationSchema[] 204 | */ 205 | public function getInvitations() 206 | { 207 | return $this->container['invitations']; 208 | } 209 | 210 | /** 211 | * Sets invitations 212 | * 213 | * @param \RusticiSoftware\Cloud\V2\Model\PrivateInvitationSchema[] $invitations A list of private invitation objects. 214 | * 215 | * @return $this 216 | */ 217 | public function setInvitations($invitations) 218 | { 219 | $this->container['invitations'] = $invitations; 220 | 221 | return $this; 222 | } 223 | /** 224 | * Returns true if offset exists. False otherwise. 225 | * 226 | * @param integer $offset Offset 227 | * 228 | * @return bool 229 | */ 230 | public function offsetExists($offset): bool 231 | { 232 | return isset($this->container[$offset]); 233 | } 234 | 235 | /** 236 | * Gets offset. 237 | * 238 | * @param integer $offset Offset 239 | * 240 | * @return mixed 241 | */ 242 | public function offsetGet($offset): mixed 243 | { 244 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 245 | } 246 | 247 | /** 248 | * Sets value based on offset. 249 | * 250 | * @param integer $offset Offset 251 | * @param mixed $value Value to be set 252 | * 253 | * @return void 254 | */ 255 | public function offsetSet($offset, $value): void 256 | { 257 | if (is_null($offset)) { 258 | $this->container[] = $value; 259 | } else { 260 | $this->container[$offset] = $value; 261 | } 262 | } 263 | 264 | /** 265 | * Unsets offset. 266 | * 267 | * @param integer $offset Offset 268 | * 269 | * @return void 270 | */ 271 | public function offsetUnset($offset): void 272 | { 273 | unset($this->container[$offset]); 274 | } 275 | 276 | /** 277 | * Gets the string presentation of the object 278 | * 279 | * @return string 280 | */ 281 | public function __toString() 282 | { 283 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 284 | return json_encode( 285 | ObjectSerializer::sanitizeForSerialization($this), 286 | JSON_PRETTY_PRINT 287 | ); 288 | } 289 | 290 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 291 | } 292 | } 293 | 294 | 295 | -------------------------------------------------------------------------------- /src/Model/LaunchHistoryListSchema.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\LaunchHistorySchema[]' 60 | ]; 61 | 62 | /** 63 | * Array of property to format mappings. Used for (de)serialization 64 | * 65 | * @var string[] 66 | */ 67 | protected static $swaggerFormats = [ 68 | 'launch_history' => null 69 | ]; 70 | 71 | /** 72 | * Array of property to type mappings. Used for (de)serialization 73 | * 74 | * @return array 75 | */ 76 | public static function swaggerTypes() 77 | { 78 | return self::$swaggerTypes; 79 | } 80 | 81 | /** 82 | * Array of property to format mappings. Used for (de)serialization 83 | * 84 | * @return array 85 | */ 86 | public static function swaggerFormats() 87 | { 88 | return self::$swaggerFormats; 89 | } 90 | 91 | /** 92 | * Array of attributes where the key is the local name, 93 | * and the value is the original name 94 | * 95 | * @var string[] 96 | */ 97 | protected static $attributeMap = [ 98 | 'launch_history' => 'launchHistory' 99 | ]; 100 | 101 | /** 102 | * Array of attributes to setter functions (for deserialization of responses) 103 | * 104 | * @var string[] 105 | */ 106 | protected static $setters = [ 107 | 'launch_history' => 'setLaunchHistory' 108 | ]; 109 | 110 | /** 111 | * Array of attributes to getter functions (for serialization of requests) 112 | * 113 | * @var string[] 114 | */ 115 | protected static $getters = [ 116 | 'launch_history' => 'getLaunchHistory' 117 | ]; 118 | 119 | /** 120 | * Array of attributes where the key is the local name, 121 | * and the value is the original name 122 | * 123 | * @return array 124 | */ 125 | public static function attributeMap() 126 | { 127 | return self::$attributeMap; 128 | } 129 | 130 | /** 131 | * Array of attributes to setter functions (for deserialization of responses) 132 | * 133 | * @return array 134 | */ 135 | public static function setters() 136 | { 137 | return self::$setters; 138 | } 139 | 140 | /** 141 | * Array of attributes to getter functions (for serialization of requests) 142 | * 143 | * @return array 144 | */ 145 | public static function getters() 146 | { 147 | return self::$getters; 148 | } 149 | 150 | /** 151 | * The original name of the model. 152 | * 153 | * @return string 154 | */ 155 | public function getModelName() 156 | { 157 | return self::$swaggerModelName; 158 | } 159 | 160 | 161 | 162 | 163 | 164 | /** 165 | * Associative array for storing property values 166 | * 167 | * @var mixed[] 168 | */ 169 | protected $container = []; 170 | 171 | /** 172 | * Constructor 173 | * 174 | * @param mixed[] $data Associated array of property values 175 | * initializing the model 176 | */ 177 | public function __construct(array $data = null) 178 | { 179 | $this->container['launch_history'] = isset($data['launch_history']) ? $data['launch_history'] : null; 180 | } 181 | 182 | /** 183 | * Show all the invalid properties with reasons. 184 | * 185 | * @return array invalid properties with reasons 186 | */ 187 | public function listInvalidProperties() 188 | { 189 | $invalidProperties = []; 190 | 191 | return $invalidProperties; 192 | } 193 | 194 | /** 195 | * Validate all the properties in the model 196 | * return true if all passed 197 | * 198 | * @return bool True if all properties are valid 199 | */ 200 | public function valid() 201 | { 202 | return count($this->listInvalidProperties()) === 0; 203 | } 204 | 205 | 206 | /** 207 | * Gets launch_history 208 | * 209 | * @return \RusticiSoftware\Cloud\V2\Model\LaunchHistorySchema[] 210 | */ 211 | public function getLaunchHistory() 212 | { 213 | return $this->container['launch_history']; 214 | } 215 | 216 | /** 217 | * Sets launch_history 218 | * 219 | * @param \RusticiSoftware\Cloud\V2\Model\LaunchHistorySchema[] $launch_history launch_history 220 | * 221 | * @return $this 222 | */ 223 | public function setLaunchHistory($launch_history) 224 | { 225 | $this->container['launch_history'] = $launch_history; 226 | 227 | return $this; 228 | } 229 | /** 230 | * Returns true if offset exists. False otherwise. 231 | * 232 | * @param integer $offset Offset 233 | * 234 | * @return bool 235 | */ 236 | public function offsetExists($offset): bool 237 | { 238 | return isset($this->container[$offset]); 239 | } 240 | 241 | /** 242 | * Gets offset. 243 | * 244 | * @param integer $offset Offset 245 | * 246 | * @return mixed 247 | */ 248 | public function offsetGet($offset): mixed 249 | { 250 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 251 | } 252 | 253 | /** 254 | * Sets value based on offset. 255 | * 256 | * @param integer $offset Offset 257 | * @param mixed $value Value to be set 258 | * 259 | * @return void 260 | */ 261 | public function offsetSet($offset, $value): void 262 | { 263 | if (is_null($offset)) { 264 | $this->container[] = $value; 265 | } else { 266 | $this->container[$offset] = $value; 267 | } 268 | } 269 | 270 | /** 271 | * Unsets offset. 272 | * 273 | * @param integer $offset Offset 274 | * 275 | * @return void 276 | */ 277 | public function offsetUnset($offset): void 278 | { 279 | unset($this->container[$offset]); 280 | } 281 | 282 | /** 283 | * Gets the string presentation of the object 284 | * 285 | * @return string 286 | */ 287 | public function __toString() 288 | { 289 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 290 | return json_encode( 291 | ObjectSerializer::sanitizeForSerialization($this), 292 | JSON_PRETTY_PRINT 293 | ); 294 | } 295 | 296 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 297 | } 298 | } 299 | 300 | 301 | -------------------------------------------------------------------------------- /src/Model/UserInvitationList.php: -------------------------------------------------------------------------------- 1 | '\RusticiSoftware\Cloud\V2\Model\UserInvitationSchema[]' 58 | ]; 59 | 60 | /** 61 | * Array of property to format mappings. Used for (de)serialization 62 | * 63 | * @var string[] 64 | */ 65 | protected static $swaggerFormats = [ 66 | 'user_invitations' => null 67 | ]; 68 | 69 | /** 70 | * Array of property to type mappings. Used for (de)serialization 71 | * 72 | * @return array 73 | */ 74 | public static function swaggerTypes() 75 | { 76 | return self::$swaggerTypes + parent::swaggerTypes(); 77 | } 78 | 79 | /** 80 | * Array of property to format mappings. Used for (de)serialization 81 | * 82 | * @return array 83 | */ 84 | public static function swaggerFormats() 85 | { 86 | return self::$swaggerFormats + parent::swaggerFormats(); 87 | } 88 | 89 | /** 90 | * Array of attributes where the key is the local name, 91 | * and the value is the original name 92 | * 93 | * @var string[] 94 | */ 95 | protected static $attributeMap = [ 96 | 'user_invitations' => 'userInvitations' 97 | ]; 98 | 99 | /** 100 | * Array of attributes to setter functions (for deserialization of responses) 101 | * 102 | * @var string[] 103 | */ 104 | protected static $setters = [ 105 | 'user_invitations' => 'setUserInvitations' 106 | ]; 107 | 108 | /** 109 | * Array of attributes to getter functions (for serialization of requests) 110 | * 111 | * @var string[] 112 | */ 113 | protected static $getters = [ 114 | 'user_invitations' => 'getUserInvitations' 115 | ]; 116 | 117 | /** 118 | * Array of attributes where the key is the local name, 119 | * and the value is the original name 120 | * 121 | * @return array 122 | */ 123 | public static function attributeMap() 124 | { 125 | return parent::attributeMap() + self::$attributeMap; 126 | } 127 | 128 | /** 129 | * Array of attributes to setter functions (for deserialization of responses) 130 | * 131 | * @return array 132 | */ 133 | public static function setters() 134 | { 135 | return parent::setters() + self::$setters; 136 | } 137 | 138 | /** 139 | * Array of attributes to getter functions (for serialization of requests) 140 | * 141 | * @return array 142 | */ 143 | public static function getters() 144 | { 145 | return parent::getters() + self::$getters; 146 | } 147 | 148 | /** 149 | * The original name of the model. 150 | * 151 | * @return string 152 | */ 153 | public function getModelName() 154 | { 155 | return self::$swaggerModelName; 156 | } 157 | 158 | 159 | 160 | 161 | 162 | 163 | /** 164 | * Constructor 165 | * 166 | * @param mixed[] $data Associated array of property values 167 | * initializing the model 168 | */ 169 | public function __construct(array $data = null) 170 | { 171 | parent::__construct($data); 172 | 173 | $this->container['user_invitations'] = isset($data['user_invitations']) ? $data['user_invitations'] : null; 174 | } 175 | 176 | /** 177 | * Show all the invalid properties with reasons. 178 | * 179 | * @return array invalid properties with reasons 180 | */ 181 | public function listInvalidProperties() 182 | { 183 | $invalidProperties = parent::listInvalidProperties(); 184 | 185 | return $invalidProperties; 186 | } 187 | 188 | /** 189 | * Validate all the properties in the model 190 | * return true if all passed 191 | * 192 | * @return bool True if all properties are valid 193 | */ 194 | public function valid() 195 | { 196 | return count($this->listInvalidProperties()) === 0; 197 | } 198 | 199 | 200 | /** 201 | * Gets user_invitations 202 | * 203 | * @return \RusticiSoftware\Cloud\V2\Model\UserInvitationSchema[] 204 | */ 205 | public function getUserInvitations() 206 | { 207 | return $this->container['user_invitations']; 208 | } 209 | 210 | /** 211 | * Sets user_invitations 212 | * 213 | * @param \RusticiSoftware\Cloud\V2\Model\UserInvitationSchema[] $user_invitations A list of user invitation objects. 214 | * 215 | * @return $this 216 | */ 217 | public function setUserInvitations($user_invitations) 218 | { 219 | $this->container['user_invitations'] = $user_invitations; 220 | 221 | return $this; 222 | } 223 | /** 224 | * Returns true if offset exists. False otherwise. 225 | * 226 | * @param integer $offset Offset 227 | * 228 | * @return bool 229 | */ 230 | public function offsetExists($offset): bool 231 | { 232 | return isset($this->container[$offset]); 233 | } 234 | 235 | /** 236 | * Gets offset. 237 | * 238 | * @param integer $offset Offset 239 | * 240 | * @return mixed 241 | */ 242 | public function offsetGet($offset): mixed 243 | { 244 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 245 | } 246 | 247 | /** 248 | * Sets value based on offset. 249 | * 250 | * @param integer $offset Offset 251 | * @param mixed $value Value to be set 252 | * 253 | * @return void 254 | */ 255 | public function offsetSet($offset, $value): void 256 | { 257 | if (is_null($offset)) { 258 | $this->container[] = $value; 259 | } else { 260 | $this->container[$offset] = $value; 261 | } 262 | } 263 | 264 | /** 265 | * Unsets offset. 266 | * 267 | * @param integer $offset Offset 268 | * 269 | * @return void 270 | */ 271 | public function offsetUnset($offset): void 272 | { 273 | unset($this->container[$offset]); 274 | } 275 | 276 | /** 277 | * Gets the string presentation of the object 278 | * 279 | * @return string 280 | */ 281 | public function __toString() 282 | { 283 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 284 | return json_encode( 285 | ObjectSerializer::sanitizeForSerialization($this), 286 | JSON_PRETTY_PRINT 287 | ); 288 | } 289 | 290 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 291 | } 292 | } 293 | 294 | 295 | --------------------------------------------------------------------------------