Skip to content
Snippets Groups Projects
Commit cad3fd33 authored by Carsten Karbach's avatar Carsten Karbach
Browse files

Add project type in application model

parent ebb8d6f6
No related branches found
No related tags found
No related merge requests found
cd /private/Programme/swagger/swagger-codegen
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i /private/AntragsServer/workspace/EventsAPIClient/events_api.json -l php -o /private/AntragsServer/workspace/EventsAPIClient/lib/new --invoker-package='jards\eventsapiclient\Swagger\Client'
\ No newline at end of file
......@@ -141,6 +141,10 @@
"type": {
"description": "Proposal type such as extension or new",
"type": "string"
},
"projecttype": {
"description": "Type of requested project, e.g. regular, test or large scale",
"type": "string"
}
}
}
......
......@@ -55,7 +55,8 @@ class Application implements ArrayAccess
*/
protected static $swaggerTypes = [
'id' => 'int',
'type' => 'string'
'type' => 'string',
'projecttype' => 'string'
];
/**
......@@ -64,7 +65,8 @@ class Application implements ArrayAccess
*/
protected static $swaggerFormats = [
'id' => null,
'type' => null
'type' => null,
'projecttype' => null
];
public static function swaggerTypes()
......@@ -83,7 +85,8 @@ class Application implements ArrayAccess
*/
protected static $attributeMap = [
'id' => 'id',
'type' => 'type'
'type' => 'type',
'projecttype' => 'projecttype'
];
......@@ -93,7 +96,8 @@ class Application implements ArrayAccess
*/
protected static $setters = [
'id' => 'setId',
'type' => 'setType'
'type' => 'setType',
'projecttype' => 'setProjecttype'
];
......@@ -103,7 +107,8 @@ class Application implements ArrayAccess
*/
protected static $getters = [
'id' => 'getId',
'type' => 'getType'
'type' => 'getType',
'projecttype' => 'getProjecttype'
];
public static function attributeMap()
......@@ -139,6 +144,7 @@ class Application implements ArrayAccess
{
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
$this->container['projecttype'] = isset($data['projecttype']) ? $data['projecttype'] : null;
}
/**
......@@ -213,6 +219,27 @@ class Application implements ArrayAccess
return $this;
}
/**
* Gets projecttype
* @return string
*/
public function getProjecttype()
{
return $this->container['projecttype'];
}
/**
* Sets projecttype
* @param string $projecttype Type of requested project, e.g. regular, test or large scale
* @return $this
*/
public function setProjecttype($projecttype)
{
$this->container['projecttype'] = $projecttype;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment