Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EventsAPIClient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jards
EventsAPIClient
Commits
cad3fd33
Commit
cad3fd33
authored
7 years ago
by
Carsten Karbach
Browse files
Options
Downloads
Patches
Plain Diff
Add project type in application model
parent
ebb8d6f6
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/GenerateClient.txt
+2
-0
2 additions, 0 deletions
docs/GenerateClient.txt
events_api.json
+4
-0
4 additions, 0 deletions
events_api.json
lib/Model/Application.php
+32
-5
32 additions, 5 deletions
lib/Model/Application.php
with
38 additions
and
5 deletions
docs/GenerateClient.txt
0 → 100644
+
2
−
0
View file @
cad3fd33
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
This diff is collapsed.
Click to expand it.
events_api.json
+
4
−
0
View file @
cad3fd33
...
...
@@ -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"
}
}
}
...
...
This diff is collapsed.
Click to expand it.
lib/Model/Application.php
+
32
−
5
View file @
cad3fd33
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment