Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 78bc267

Browse files
Merge pull request #23 from JohnOnSoftware/master
add support of 'ifc' in JobPayloadItem
2 parents 49fa80c + d5269dd commit 78bc267

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/Model/JobPayloadItem.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public static function getters()
121121
const TYPE_STEP = 'step';
122122
const TYPE_IGES = 'iges';
123123
const TYPE_OBJ = 'obj';
124+
const TYPE_IFC = 'ifc';
124125
const VIEWS__2D = '2d';
125126
const VIEWS__3D = '3d';
126127

@@ -139,6 +140,8 @@ public function getTypeAllowableValues()
139140
self::TYPE_STEP,
140141
self::TYPE_IGES,
141142
self::TYPE_OBJ,
143+
self::TYPE_IFC,
144+
142145
];
143146
}
144147

@@ -184,9 +187,9 @@ public function listInvalidProperties()
184187
if ($this->container['type'] === null) {
185188
$invalid_properties[] = "'type' can't be null";
186189
}
187-
$allowed_values = ["svf", "thumbnail", "stl", "step", "iges", "obj"];
190+
$allowed_values = ["svf", "thumbnail", "stl", "step", "iges", "obj", "ifc"];
188191
if (!in_array($this->container['type'], $allowed_values)) {
189-
$invalid_properties[] = "invalid value for 'type', must be one of 'svf', 'thumbnail', 'stl', 'step', 'iges', 'obj'.";
192+
$invalid_properties[] = "invalid value for 'type', must be one of 'svf', 'thumbnail', 'stl', 'step', 'iges', 'obj', 'ifc'.";
190193
}
191194

192195
return $invalid_properties;
@@ -204,7 +207,7 @@ public function valid()
204207
if ($this->container['type'] === null) {
205208
return false;
206209
}
207-
$allowed_values = ["svf", "thumbnail", "stl", "step", "iges", "obj"];
210+
$allowed_values = ["svf", "thumbnail", "stl", "step", "iges", "obj", "ifc"];
208211
if (!in_array($this->container['type'], $allowed_values)) {
209212
return false;
210213
}
@@ -223,14 +226,14 @@ public function getType()
223226

224227
/**
225228
* Sets type
226-
* @param string $type The requested output types. Possible values include `svf`, `thumbnai`, `stl`, `step`, `iges`, or `obj`. For a list of supported types, call the [GET formats](https://developer.autodesk.com/en/docs/model-derivative/v2/reference/http/formats-GET) endpoint.
229+
* @param string $type The requested output types. Possible values include `svf`, `thumbnai`, `stl`, `step`, `iges`, 'ifc', or `obj`. For a list of supported types, call the [GET formats](https://developer.autodesk.com/en/docs/model-derivative/v2/reference/http/formats-GET) endpoint.
227230
* @return $this
228231
*/
229232
public function setType($type)
230233
{
231-
$allowed_values = array('svf', 'thumbnail', 'stl', 'step', 'iges', 'obj');
234+
$allowed_values = array('svf', 'thumbnail', 'stl', 'step', 'iges', 'obj', 'ifc');
232235
if ((!in_array($type, $allowed_values))) {
233-
throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'svf', 'thumbnail', 'stl', 'step', 'iges', 'obj'");
236+
throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'svf', 'thumbnail', 'stl', 'step', 'iges', 'obj','ifc' ");
234237
}
235238
$this->container['type'] = $type;
236239

0 commit comments

Comments
 (0)