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
65e519b6
Commit
65e519b6
authored
2 years ago
by
Andreas Galonska
Browse files
Options
Downloads
Patches
Plain Diff
rename category -> group
parent
f87f74f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
events_api.json
+4
-4
4 additions, 4 deletions
events_api.json
lib/Model/Event.php
+26
-26
26 additions, 26 deletions
lib/Model/Event.php
with
30 additions
and
30 deletions
events_api.json
+
4
−
4
View file @
65e519b6
...
@@ -112,12 +112,12 @@
...
@@ -112,12 +112,12 @@
"type"
:
"string"
"type"
:
"string"
}
}
},
},
"
category
id"
:{
"
group
id"
:{
"description"
:
"This is only available for review events. ID of review
category
where the event took place. "
,
"description"
:
"This is only available for review events. ID of review
group
where the event took place. "
,
"type"
:
"integer"
"type"
:
"integer"
},
},
"
category
name"
:{
"
group
name"
:{
"description"
:
"This is only available for review events. Name of review
category
where the event took place. "
,
"description"
:
"This is only available for review events. Name of review
group
where the event took place. "
,
"type"
:
"string"
"type"
:
"string"
},
},
"project"
:
{
"project"
:
{
...
...
This diff is collapsed.
Click to expand it.
lib/Model/Event.php
+
26
−
26
View file @
65e519b6
...
@@ -62,8 +62,8 @@ class Event implements ArrayAccess
...
@@ -62,8 +62,8 @@ class Event implements ArrayAccess
'new_state'
=>
'string'
,
'new_state'
=>
'string'
,
'trigger_type'
=>
'string'
,
'trigger_type'
=>
'string'
,
'institutions'
=>
'string[]'
,
'institutions'
=>
'string[]'
,
'
category
id'
=>
'int'
,
'
group
id'
=>
'int'
,
'
category
name'
=>
'string'
,
'
group
name'
=>
'string'
,
'project'
=>
'\jards\eventsapiclient\Swagger\Client\Model\Project'
,
'project'
=>
'\jards\eventsapiclient\Swagger\Client\Model\Project'
,
'application'
=>
'\jards\eventsapiclient\Swagger\Client\Model\Application'
'application'
=>
'\jards\eventsapiclient\Swagger\Client\Model\Application'
];
];
...
@@ -81,8 +81,8 @@ class Event implements ArrayAccess
...
@@ -81,8 +81,8 @@ class Event implements ArrayAccess
'new_state'
=>
null
,
'new_state'
=>
null
,
'trigger_type'
=>
null
,
'trigger_type'
=>
null
,
'institutions'
=>
null
,
'institutions'
=>
null
,
'
category
id'
=>
null
,
'
group
id'
=>
null
,
'
category
name'
=>
null
,
'
group
name'
=>
null
,
'project'
=>
null
,
'project'
=>
null
,
'application'
=>
null
'application'
=>
null
];
];
...
@@ -110,8 +110,8 @@ class Event implements ArrayAccess
...
@@ -110,8 +110,8 @@ class Event implements ArrayAccess
'new_state'
=>
'newState'
,
'new_state'
=>
'newState'
,
'trigger_type'
=>
'triggerType'
,
'trigger_type'
=>
'triggerType'
,
'institutions'
=>
'institutions'
,
'institutions'
=>
'institutions'
,
'
categoryid'
=>
'category
id'
,
'
groupid'
=>
'group
id'
,
'
category
name'
=>
'
category
name'
,
'
group
name'
=>
'
group
name'
,
'project'
=>
'project'
,
'project'
=>
'project'
,
'application'
=>
'application'
'application'
=>
'application'
];
];
...
@@ -130,8 +130,8 @@ class Event implements ArrayAccess
...
@@ -130,8 +130,8 @@ class Event implements ArrayAccess
'new_state'
=>
'setNewState'
,
'new_state'
=>
'setNewState'
,
'trigger_type'
=>
'setTriggerType'
,
'trigger_type'
=>
'setTriggerType'
,
'institutions'
=>
'setInstitutions'
,
'institutions'
=>
'setInstitutions'
,
'
category
id'
=>
'set
Category
id'
,
'
group
id'
=>
'set
Group
id'
,
'
category
name'
=>
'set
Category
name'
,
'
group
name'
=>
'set
Group
name'
,
'project'
=>
'setProject'
,
'project'
=>
'setProject'
,
'application'
=>
'setApplication'
'application'
=>
'setApplication'
];
];
...
@@ -150,8 +150,8 @@ class Event implements ArrayAccess
...
@@ -150,8 +150,8 @@ class Event implements ArrayAccess
'new_state'
=>
'getNewState'
,
'new_state'
=>
'getNewState'
,
'trigger_type'
=>
'getTriggerType'
,
'trigger_type'
=>
'getTriggerType'
,
'institutions'
=>
'getInstitutions'
,
'institutions'
=>
'getInstitutions'
,
'
category
id'
=>
'get
Category
id'
,
'
group
id'
=>
'get
Group
id'
,
'
category
name'
=>
'get
Category
name'
,
'
group
name'
=>
'get
Group
name'
,
'project'
=>
'getProject'
,
'project'
=>
'getProject'
,
'application'
=>
'getApplication'
'application'
=>
'getApplication'
];
];
...
@@ -195,8 +195,8 @@ class Event implements ArrayAccess
...
@@ -195,8 +195,8 @@ class Event implements ArrayAccess
$this
->
container
[
'new_state'
]
=
isset
(
$data
[
'new_state'
])
?
$data
[
'new_state'
]
:
null
;
$this
->
container
[
'new_state'
]
=
isset
(
$data
[
'new_state'
])
?
$data
[
'new_state'
]
:
null
;
$this
->
container
[
'trigger_type'
]
=
isset
(
$data
[
'trigger_type'
])
?
$data
[
'trigger_type'
]
:
null
;
$this
->
container
[
'trigger_type'
]
=
isset
(
$data
[
'trigger_type'
])
?
$data
[
'trigger_type'
]
:
null
;
$this
->
container
[
'institutions'
]
=
isset
(
$data
[
'institutions'
])
?
$data
[
'institutions'
]
:
null
;
$this
->
container
[
'institutions'
]
=
isset
(
$data
[
'institutions'
])
?
$data
[
'institutions'
]
:
null
;
$this
->
container
[
'
category
id'
]
=
isset
(
$data
[
'
category
id'
])
?
$data
[
'
category
id'
]
:
null
;
$this
->
container
[
'
group
id'
]
=
isset
(
$data
[
'
group
id'
])
?
$data
[
'
group
id'
]
:
null
;
$this
->
container
[
'
category
name'
]
=
isset
(
$data
[
'
category
name'
])
?
$data
[
'
category
name'
]
:
null
;
$this
->
container
[
'
group
name'
]
=
isset
(
$data
[
'
group
name'
])
?
$data
[
'
group
name'
]
:
null
;
$this
->
container
[
'project'
]
=
isset
(
$data
[
'project'
])
?
$data
[
'project'
]
:
null
;
$this
->
container
[
'project'
]
=
isset
(
$data
[
'project'
])
?
$data
[
'project'
]
:
null
;
$this
->
container
[
'application'
]
=
isset
(
$data
[
'application'
])
?
$data
[
'application'
]
:
null
;
$this
->
container
[
'application'
]
=
isset
(
$data
[
'application'
])
?
$data
[
'application'
]
:
null
;
}
}
...
@@ -413,43 +413,43 @@ class Event implements ArrayAccess
...
@@ -413,43 +413,43 @@ class Event implements ArrayAccess
}
}
/**
/**
* Gets
category
id
* Gets
group
id
* @return int
* @return int
*/
*/
public
function
get
Category
id
()
public
function
get
Group
id
()
{
{
return
$this
->
container
[
'
category
id'
];
return
$this
->
container
[
'
group
id'
];
}
}
/**
/**
* Sets
category
id
* Sets
group
id
* @param int $
category
id This is only available for review events. ID of review
category
where the event took place.
* @param int $
group
id This is only available for review events. ID of review
group
where the event took place.
* @return $this
* @return $this
*/
*/
public
function
set
Categoryid
(
$category
id
)
public
function
set
Groupid
(
$group
id
)
{
{
$this
->
container
[
'
categoryid'
]
=
$category
id
;
$this
->
container
[
'
groupid'
]
=
$group
id
;
return
$this
;
return
$this
;
}
}
/**
/**
* Gets
category
name
* Gets
group
name
* @return string
* @return string
*/
*/
public
function
get
Category
name
()
public
function
get
Group
name
()
{
{
return
$this
->
container
[
'
category
name'
];
return
$this
->
container
[
'
group
name'
];
}
}
/**
/**
* Sets
category
name
* Sets
group
name
* @param string $
category
name This is only available for review events. Name of review
category
where the event took place.
* @param string $
group
name This is only available for review events. Name of review
group
where the event took place.
* @return $this
* @return $this
*/
*/
public
function
set
Categoryname
(
$category
name
)
public
function
set
Groupname
(
$group
name
)
{
{
$this
->
container
[
'
category
name'
]
=
$
category
name
;
$this
->
container
[
'
group
name'
]
=
$
group
name
;
return
$this
;
return
$this
;
}
}
...
...
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