diff --git a/docs/GenerateClient.txt b/docs/GenerateClient.txt new file mode 100644 index 0000000000000000000000000000000000000000..a5dbcaa86e894f3c7f6fbc059e3276bb2557e0a1 --- /dev/null +++ b/docs/GenerateClient.txt @@ -0,0 +1,2 @@ +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 diff --git a/events_api.json b/events_api.json index ad18ec194329dc4bc500f5bc18f9ede5e321f9c3..e498b08a4258fd145e9653b2d844aab69cf02786 100644 --- a/events_api.json +++ b/events_api.json @@ -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" } } } diff --git a/lib/Model/Application.php b/lib/Model/Application.php index b4fe62b39def5db2e044874ead9d859219b0603e..9b9d7ab529537c7425db24bc9c04e8a01d8a1468 100644 --- a/lib/Model/Application.php +++ b/lib/Model/Application.php @@ -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